mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
clean exit
This commit is contained in:
parent
23140d5e23
commit
ae1f8814a7
@ -188,8 +188,6 @@ class DistributedLevel(DistributedObject.DistributedObject,
|
||||
self.initVisibility()
|
||||
self.placeLocalToon()
|
||||
|
||||
self.acceptOnce('leavingFactory', self.announceLeaving)
|
||||
|
||||
def announceLeaving(self):
|
||||
"""call this just before leaving the level; this may result in
|
||||
the factory being destroyed on the AI"""
|
||||
@ -315,6 +313,8 @@ class DistributedLevel(DistributedObject.DistributedObject,
|
||||
toonbase.localToon.chatMgr.chatInputSpeedChat.removeFactoryMenu()
|
||||
# remove special camera views
|
||||
del self.factoryViews
|
||||
# make sure the ouch task is stopped
|
||||
self.stopOuch()
|
||||
|
||||
def getZoneNode(self, zoneNum):
|
||||
return self.zoneNum2node[zoneNum]
|
||||
|
Loading…
x
Reference in New Issue
Block a user