mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
*** empty log message ***
This commit is contained in:
parent
27e79ad6db
commit
78bbde2bcc
@ -32,6 +32,7 @@ class ClientRepository(DirectObject.DirectObject):
|
||||
readResult = self.dcFile.read(fname)
|
||||
if not readResult:
|
||||
self.notify.error("Could not read dcfile: " + dcFileName)
|
||||
self.hashVal = self.dcFile.getHash()
|
||||
return self.parseDcClasses(self.dcFile)
|
||||
|
||||
def parseDcClasses(self, dcFile):
|
||||
|
@ -59,6 +59,24 @@ class DistributedNode(DistributedObject.DistributedObject, NodePath.NodePath):
|
||||
taskMgr.removeTasksNamed(taskName)
|
||||
return self.deadReckoningFlag
|
||||
|
||||
### setParent ###
|
||||
|
||||
def b_setParent(self, parentString):
|
||||
self.setParent(parentString)
|
||||
self.d_setParent(parentString)
|
||||
return None
|
||||
|
||||
def d_setParent(self, parentString):
|
||||
self.sendUpdate("setParent", [parentString])
|
||||
return None
|
||||
|
||||
def setParent(self, parentString):
|
||||
print "setting parent of %s to %s" % (self.getName(), parentString)
|
||||
assert(self.cr.name2nodePath.has_key(parentString))
|
||||
parent = self.cr.name2nodePath[parentString]
|
||||
self.wrtReparentTo(parent)
|
||||
return None
|
||||
|
||||
###### set pos and hpr functions #######
|
||||
|
||||
# setX provided by NodePath
|
||||
|
Loading…
x
Reference in New Issue
Block a user