mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
more debugging for deleteObjectLocation parentId=4294967295 AI crash
This commit is contained in:
parent
a51d4712cf
commit
59b7f35cad
@ -199,6 +199,8 @@ class DoCollectionManager:
|
|||||||
"handleObjectLocation: doId: %s parentId: %s zoneId: %s"%
|
"handleObjectLocation: doId: %s parentId: %s zoneId: %s"%
|
||||||
(doId, parentId, zoneId))
|
(doId, parentId, zoneId))
|
||||||
# Let the object finish the job
|
# Let the object finish the job
|
||||||
|
if hasattr(distObj, 'checkFFparentId'):
|
||||||
|
obj.checkFFparentId(parentId)
|
||||||
obj.setLocation(parentId, zoneId)
|
obj.setLocation(parentId, zoneId)
|
||||||
#self.storeObjectLocation(doId, parentId, zoneId)
|
#self.storeObjectLocation(doId, parentId, zoneId)
|
||||||
else:
|
else:
|
||||||
@ -213,6 +215,8 @@ class DoCollectionManager:
|
|||||||
zoneId = di.getUint32()
|
zoneId = di.getUint32()
|
||||||
distObj = self.doId2do.get(self.getMsgChannel())
|
distObj = self.doId2do.get(self.getMsgChannel())
|
||||||
if distObj is not None:
|
if distObj is not None:
|
||||||
|
if hasattr(distObj, 'checkFFparentId'):
|
||||||
|
distObj.checkFFparentId(parentId)
|
||||||
distObj.setLocation(parentId, zoneId)
|
distObj.setLocation(parentId, zoneId)
|
||||||
else:
|
else:
|
||||||
self.notify.warning('handleSetLocation: object %s not present' % self.getMsgChannel())
|
self.notify.warning('handleSetLocation: object %s not present' % self.getMsgChannel())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user