comment out automatic reparenting to parent

This commit is contained in:
Samir Naik 2005-03-08 07:50:55 +00:00
parent f417cfc9d5
commit 2fac71989d

View File

@ -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