mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
*** empty log message ***
This commit is contained in:
parent
f6c5e1059b
commit
40e3822c8e
@ -519,23 +519,20 @@ class Actor(PandaObject, NodePath):
|
|||||||
else:
|
else:
|
||||||
Actor.notify.warning("no part named %s!" % (partName))
|
Actor.notify.warning("no part named %s!" % (partName))
|
||||||
|
|
||||||
def instance(self, partName, anotherPart, jointName, lodName="lodRoot"):
|
def instance(self, path, part, jointName, lodName="lodRoot"):
|
||||||
"""instance(self, string, string, string, key="lodRoot")
|
"""instance(self, NodePath, string, string, key="lodRoot")
|
||||||
Instance one actor part to another at a joint called jointName"""
|
Instance a nodePath to an actor part at a joint called jointName"""
|
||||||
if (self.__partBundleDict.has_key(lodName)):
|
if (self.__partBundleDict.has_key(lodName)):
|
||||||
partBundleDict = self.__partBundleDict[lodName]
|
partBundleDict = self.__partBundleDict[lodName]
|
||||||
if (partBundleDict.has_key(partName)):
|
if (partBundleDict.has_key(part)):
|
||||||
if (partBundleDict.has_key(anotherPart)):
|
joint = NodePath(partBundleDict[part],
|
||||||
joint = NodePath(partBundleDict[anotherPart],
|
"**/" + jointName)
|
||||||
"**/" + jointName)
|
if (joint.isEmpty()):
|
||||||
if (joint.isEmpty()):
|
Actor.notify.warning("%s not found!" % (jointName))
|
||||||
Actor.notify.warning("%s not found!" % (jointName))
|
|
||||||
else:
|
|
||||||
return partBundleDict[partName].instanceTo(joint)
|
|
||||||
else:
|
else:
|
||||||
Actor.notify.warning("no part named %s!" % (anotherPart))
|
return path.instanceTo(joint)
|
||||||
else:
|
else:
|
||||||
Actor.notify.warning("no part named %s!" % (partName))
|
Actor.notify.warning("no part named %s!" % (part))
|
||||||
else:
|
else:
|
||||||
Actor.notify.warning("no lod named %s!" % (lodName))
|
Actor.notify.warning("no lod named %s!" % (lodName))
|
||||||
|
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
"""AudioManagerGlobal module: contains the global audio manager"""
|
|
||||||
import AudioManager
|
|
||||||
|
|
||||||
audioMgr = AudioManager.AudioManager()
|
|
Loading…
x
Reference in New Issue
Block a user