From 2fac71989d4b5d772e6c7d154d6e6352fa9b54ee Mon Sep 17 00:00:00 2001 From: Samir Naik Date: Tue, 8 Mar 2005 07:50:55 +0000 Subject: [PATCH] comment out automatic reparenting to parent --- direct/src/distributed/DistributedNode.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/direct/src/distributed/DistributedNode.py b/direct/src/distributed/DistributedNode.py index 1b7abc843a..5558aa8733 100644 --- a/direct/src/distributed/DistributedNode.py +++ b/direct/src/distributed/DistributedNode.py @@ -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