mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
setting location
This commit is contained in:
parent
0376b5e575
commit
0a4a443824
@ -351,10 +351,10 @@ class DistributedObject(PandaObject):
|
|||||||
def setLocation(self, parentId, zoneId):
|
def setLocation(self, parentId, zoneId):
|
||||||
#self.notify.info("setLocation: %s parentId: %s zoneId: %s" % (self.doId, parentId, zoneId))
|
#self.notify.info("setLocation: %s parentId: %s zoneId: %s" % (self.doId, parentId, zoneId))
|
||||||
# The store must run first so we know the old location
|
# The store must run first so we know the old location
|
||||||
#self.cr.storeObjectLocation(self.doId, parentId, zoneId)
|
|
||||||
self.__location = (parentId, zoneId)
|
self.__location = (parentId, zoneId)
|
||||||
self.parentId = parentId
|
self.parentId = parentId
|
||||||
self.zoneId = zoneId
|
self.zoneId = zoneId
|
||||||
|
self.cr.storeObjectLocation(self.doId, parentId, zoneId)
|
||||||
|
|
||||||
# Give the parent a chance to run code when a new child
|
# Give the parent a chance to run code when a new child
|
||||||
# sets location to it. For example, the parent may want to
|
# sets location to it. For example, the parent may want to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user