mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
comment out automatic reparenting to parent
This commit is contained in:
parent
f417cfc9d5
commit
2fac71989d
@ -34,16 +34,15 @@ class DistributedNode(DistributedObject.DistributedObject, NodePath):
|
||||
def generate(self):
|
||||
DistributedObject.DistributedObject.generate(self)
|
||||
self.gotStringParentToken = 0
|
||||
if wantOtpServer:
|
||||
parentId, zoneId = self.getLocation()
|
||||
# reparent to parent
|
||||
parent = base.cr.doId2do.get(parentId)
|
||||
if parent and isinstance(parent, NodePath):
|
||||
if self.getParent() != parent:
|
||||
print "generate: reparenting %s to %s" % (self, parent)
|
||||
# Comment out for now - JAY
|
||||
# self.wrtReparentTo(parent)
|
||||
|
||||
|
||||
#if wantOtpServer:
|
||||
# parentId, zoneId = self.getLocation()
|
||||
# # reparent to parent
|
||||
# parent = base.cr.doId2do.get(parentId)
|
||||
# if parent and isinstance(parent, NodePath):
|
||||
# if self.getParent() != parent:
|
||||
# print "generate: reparenting %s to %s" % (self, parent)
|
||||
# self.wrtReparentTo(parent)
|
||||
|
||||
def __cmp__(self, other):
|
||||
# DistributedNode inherits from NodePath, which inherits a
|
||||
|
Loading…
x
Reference in New Issue
Block a user