From ca4d42804adfaea575b0aa4bcd7b756a1759980f Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Thu, 20 Sep 2007 23:25:29 +0000 Subject: [PATCH] use == instead of is to compare physics objects --- direct/src/controls/ShipPilot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/controls/ShipPilot.py b/direct/src/controls/ShipPilot.py index fe62dbd30b..cf80d42047 100755 --- a/direct/src/controls/ShipPilot.py +++ b/direct/src/controls/ShipPilot.py @@ -82,7 +82,7 @@ class ShipPilot(PhysicsWalker): # this could still break if we have more than one ShipPilot referencing # a single boat if (self.ship is not None and - base.controlForce.getPhysicsObject() is self.ship.node().getPhysicsObject()): + base.controlForce.getPhysicsObject() == self.ship.node().getPhysicsObject()): base.controlForce.clearPhysicsObject() base.controlForce.setVector(Vec3(0)) self.takedownPhysics()