From 88e7a9637d451eb7943eb89c25abc422712a203d Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 26 Nov 2001 16:34:45 +0000 Subject: [PATCH] fixing wrong position on dd boat --- direct/src/distributed/DistributedNode.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/direct/src/distributed/DistributedNode.py b/direct/src/distributed/DistributedNode.py index 436be49a70..085cb2751e 100644 --- a/direct/src/distributed/DistributedNode.py +++ b/direct/src/distributed/DistributedNode.py @@ -55,6 +55,15 @@ class DistributedNode(DistributedObject.DistributedObject, NodePath.NodePath): return None def setParent(self, parentToken): + return self.do_setParent(parentToken) + + def do_setParent(self, parentToken): + """do_setParent(self, int parentToken) + + This function is defined simply to allow a derived class (like + DistributedAvatar) to override the behavior of setParent if + desired. + """ assert(self.cr.token2nodePath.has_key(parentToken)) parent = self.cr.token2nodePath[parentToken] self.wrtReparentTo(parent)