mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -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):
|
def takedownPhysics(self):
|
||||||
assert(self.debugPrint("takedownPhysics()"))
|
assert(self.debugPrint("takedownPhysics()"))
|
||||||
if hasattr(self, "phys"):
|
if hasattr(self, "phys"):
|
||||||
del self.phys
|
|
||||||
for i in self.nodes:
|
for i in self.nodes:
|
||||||
i.removeNode()
|
i.removeNode()
|
||||||
|
del self.phys
|
||||||
if self.ship != None:
|
if self.ship != None:
|
||||||
self.ship.worldVelocity = Vec3.zero()
|
self.ship.worldVelocity = Vec3.zero()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user