mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
wrtReparent to parent
This commit is contained in:
parent
ac6a899961
commit
840d2bdc6e
@ -39,7 +39,9 @@ class DistributedNode(DistributedObject.DistributedObject, NodePath):
|
||||
# reparent to parent
|
||||
parent = base.cr.doId2do.get(parentId)
|
||||
if parent and isinstance(parent, NodePath):
|
||||
self.reparentTo(parent)
|
||||
if self.getParent() != parent:
|
||||
print "generate: reparenting %s to %s" % (self, parent)
|
||||
self.wrtReparentTo(parent)
|
||||
|
||||
|
||||
def __cmp__(self, other):
|
||||
|
Loading…
x
Reference in New Issue
Block a user