mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
guard for calling setLocation twice
This commit is contained in:
parent
25dd2c7217
commit
0b3f17397b
@ -152,6 +152,8 @@ class DistributedObjectAI(DirectObject.DirectObject):
|
||||
def setLocation(self, parentId, zoneId):
|
||||
oldParentId = self.parentId
|
||||
oldZoneId = self.zoneId
|
||||
if ((oldParentId != parentId) or
|
||||
(oldZoneId != zoneId)):
|
||||
self.zoneId = zoneId
|
||||
self.parentId = parentId
|
||||
self.air.changeDOZoneInTables(self, zoneId, oldZoneId)
|
||||
|
Loading…
x
Reference in New Issue
Block a user