Browse Source

comment out automatic reparenting to parent

Samir Naik 21 years ago
parent
commit
2fac71989d
1 changed files with 9 additions and 10 deletions
  1. 9 10
      direct/src/distributed/DistributedNode.py

+ 9 - 10
direct/src/distributed/DistributedNode.py

@@ -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()
-            # 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):
     def __cmp__(self, other):
         # DistributedNode inherits from NodePath, which inherits a
         # DistributedNode inherits from NodePath, which inherits a