mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
kill crash when closing window from diving game
This commit is contained in:
parent
ab72021e6e
commit
4eeaa76c1a
@ -359,11 +359,12 @@ class GravityWalker(DirectObject.DirectObject):
|
|||||||
self.cTrav.addCollider(self.cEventSphereNodePath, self.event)
|
self.cTrav.addCollider(self.cEventSphereNodePath, self.event)
|
||||||
self.cTrav.addCollider(self.cRayNodePath, self.lifter)
|
self.cTrav.addCollider(self.cRayNodePath, self.lifter)
|
||||||
else:
|
else:
|
||||||
self.cTrav.removeCollider(self.cWallSphereNodePath)
|
if hasattr(self, 'cTrav'):
|
||||||
if self.wantFloorSphere:
|
self.cTrav.removeCollider(self.cWallSphereNodePath)
|
||||||
self.cTrav.removeCollider(self.cFloorSphereNodePath)
|
if self.wantFloorSphere:
|
||||||
self.cTrav.removeCollider(self.cEventSphereNodePath)
|
self.cTrav.removeCollider(self.cFloorSphereNodePath)
|
||||||
self.cTrav.removeCollider(self.cRayNodePath)
|
self.cTrav.removeCollider(self.cEventSphereNodePath)
|
||||||
|
self.cTrav.removeCollider(self.cRayNodePath)
|
||||||
|
|
||||||
def getCollisionsActive(self):
|
def getCollisionsActive(self):
|
||||||
assert self.debugPrint("getCollisionsActive() returning=%s"%(
|
assert self.debugPrint("getCollisionsActive() returning=%s"%(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user