remove old panda tests

This commit is contained in:
David Rose 2003-11-18 19:50:34 +00:00
parent af28dcf35f
commit b1beff0d5c
2 changed files with 3 additions and 7 deletions

View File

@ -160,9 +160,7 @@ class ConnectionRepository(DirectObject.DirectObject):
url = serverList[serverIndex]
self.notify.info("Connecting to %s via HTTP interface." % (url.cStr()))
# Temporary test for old pandas.
if hasattr(ch, "preserveStatus"):
ch.preserveStatus()
ch.preserveStatus()
ch.beginConnectTo(DocumentSpec(url))
ch.spawnTask(name = 'connect-to-server',

View File

@ -595,8 +595,7 @@ class PhysicsWalker(DirectObject.DirectObject):
rotation = dt * self.__rotationSpeed
#debugTempH=self.avatarNodePath.getH()
# temporary hasattr for old Pandas
assert not hasattr(Quat, "isSameDirection") or self.avatarNodePath.getQuat().isSameDirection(physObject.getOrientation())
assert self.avatarNodePath.getQuat().isSameDirection(physObject.getOrientation())
assert self.avatarNodePath.getPos().almostEqual(physObject.getPosition(), 0.0001)
# update pos:
@ -621,8 +620,7 @@ class PhysicsWalker(DirectObject.DirectObject):
# sync the change:
self.actorNode.updateTransform()
# temporary hasattr for old Pandas
assert not hasattr(Quat, "isSameDirection") or self.avatarNodePath.getQuat().isSameDirection(physObject.getOrientation())
assert self.avatarNodePath.getQuat().isSameDirection(physObject.getOrientation())
assert self.avatarNodePath.getPos().almostEqual(physObject.getPosition(), 0.0001)
#assert self.avatarNodePath.getH()==debugTempH-rotation
messenger.send("avatarMoving")