mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -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):
|
def setLocation(self, parentId, zoneId):
|
||||||
oldParentId = self.parentId
|
oldParentId = self.parentId
|
||||||
oldZoneId = self.zoneId
|
oldZoneId = self.zoneId
|
||||||
|
if ((oldParentId != parentId) or
|
||||||
|
(oldZoneId != zoneId)):
|
||||||
self.zoneId = zoneId
|
self.zoneId = zoneId
|
||||||
self.parentId = parentId
|
self.parentId = parentId
|
||||||
self.air.changeDOZoneInTables(self, zoneId, oldZoneId)
|
self.air.changeDOZoneInTables(self, zoneId, oldZoneId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user