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