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): def generate(self):
DistributedObject.DistributedObject.generate(self) DistributedObject.DistributedObject.generate(self)
self.gotStringParentToken = 0 self.gotStringParentToken = 0
if wantOtpServer:
parentId, zoneId = self.getLocation() #if wantOtpServer:
# reparent to parent # parentId, zoneId = self.getLocation()
parent = base.cr.doId2do.get(parentId) # # reparent to parent
if parent and isinstance(parent, NodePath): # parent = base.cr.doId2do.get(parentId)
if self.getParent() != parent: # if parent and isinstance(parent, NodePath):
print "generate: reparenting %s to %s" % (self, parent) # if self.getParent() != parent:
# Comment out for now - JAY # print "generate: reparenting %s to %s" % (self, parent)
# self.wrtReparentTo(parent) # self.wrtReparentTo(parent)
def __cmp__(self, other): def __cmp__(self, other):
# DistributedNode inherits from NodePath, which inherits a # DistributedNode inherits from NodePath, which inherits a