mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fixing wrong position on dd boat
This commit is contained in:
parent
155acbdf84
commit
88e7a9637d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user