mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 20:23:47 -04:00
Added fix to be able to give an object to store location for in case the object has already been removed from the doId2do list.
This commit is contained in:
parent
96780fc21f
commit
68d8fe2f20
@ -218,8 +218,11 @@ class DoCollectionManager:
|
||||
if distObj is not None:
|
||||
distObj.setLocation(parentId, zoneId)
|
||||
|
||||
def storeObjectLocation(self, doId, parentId, zoneId):
|
||||
obj = self.doId2do.get(doId)
|
||||
def storeObjectLocation(self, doId, parentId, zoneId, object=None):
|
||||
if (object == None):
|
||||
obj = self.doId2do.get(doId)
|
||||
else:
|
||||
obj = object
|
||||
if obj is not None:
|
||||
oldParentId = obj.parentId
|
||||
oldZoneId = obj.zoneId
|
||||
|
Loading…
x
Reference in New Issue
Block a user