diff --git a/direct/src/distributed/ConnectionRepository.py b/direct/src/distributed/ConnectionRepository.py index 0f9a322b30..2583e017de 100644 --- a/direct/src/distributed/ConnectionRepository.py +++ b/direct/src/distributed/ConnectionRepository.py @@ -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', diff --git a/direct/src/showbase/PhysicsWalker.py b/direct/src/showbase/PhysicsWalker.py index e75a7d031d..2e93358ef3 100755 --- a/direct/src/showbase/PhysicsWalker.py +++ b/direct/src/showbase/PhysicsWalker.py @@ -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")