mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
moved del order
This commit is contained in:
parent
8287e73425
commit
88c436e5b9
@ -219,9 +219,9 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
|
||||
def takedownPhysics(self):
|
||||
assert(self.debugPrint("takedownPhysics()"))
|
||||
if hasattr(self, "phys"):
|
||||
del self.phys
|
||||
for i in self.nodes:
|
||||
i.removeNode()
|
||||
del self.phys
|
||||
if self.ship != None:
|
||||
self.ship.worldVelocity = Vec3.zero()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user