*** empty log message ***

This commit is contained in:
David Rose 2001-02-02 03:05:10 +00:00
parent 9af851814d
commit fc19c0ef79

View File

@ -525,8 +525,7 @@ class Actor(PandaObject, NodePath):
if (self.__partBundleDict.has_key(lodName)): if (self.__partBundleDict.has_key(lodName)):
partBundleDict = self.__partBundleDict[lodName] partBundleDict = self.__partBundleDict[lodName]
if (partBundleDict.has_key(part)): if (partBundleDict.has_key(part)):
joint = NodePath(partBundleDict[part], joint = partBundleDict[part].find("**/" + jointName)
"**/" + jointName)
if (joint.isEmpty()): if (joint.isEmpty()):
Actor.notify.warning("%s not found!" % (jointName)) Actor.notify.warning("%s not found!" % (jointName))
else: else:
@ -543,8 +542,7 @@ class Actor(PandaObject, NodePath):
partBundleDict = self.__partBundleDict[lodName] partBundleDict = self.__partBundleDict[lodName]
if (partBundleDict.has_key(partName)): if (partBundleDict.has_key(partName)):
if (partBundleDict.has_key(anotherPart)): if (partBundleDict.has_key(anotherPart)):
joint = NodePath(partBundleDict[anotherPart], joint = partBundleDict[anotherPart].find("**/" + jointName)
"**/" + jointName)
if (joint.isEmpty()): if (joint.isEmpty()):
Actor.notify.warning("%s not found!" % (jointName)) Actor.notify.warning("%s not found!" % (jointName))
else: else:
@ -582,7 +580,7 @@ class Actor(PandaObject, NodePath):
root = self root = self
# make the back part have the proper transition # make the back part have the proper transition
backPart = NodePath(root, "**/" + backPartName) backPart = root.find("**/" + backPartName)
if (backPart.isEmpty()): if (backPart.isEmpty()):
Actor.notify.warning("no part named %s!" % (backPartName)) Actor.notify.warning("no part named %s!" % (backPartName))
else: else:
@ -786,7 +784,7 @@ class Actor(PandaObject, NodePath):
if (model == None): if (model == None):
print "model = None!!!" print "model = None!!!"
bundle = NodePath(model, "**/+PartBundleNode") bundle = model.find("**/+PartBundleNode")
if (bundle.isEmpty()): if (bundle.isEmpty()):
Actor.notify.warning("%s is not a character!" % (modelPath)) Actor.notify.warning("%s is not a character!" % (modelPath))
else: else:
@ -834,7 +832,7 @@ class Actor(PandaObject, NodePath):
# load the anim and get its anim bundle # load the anim and get its anim bundle
anim = loader.loadModelOnce(anims[animName]) anim = loader.loadModelOnce(anims[animName])
animBundle = \ animBundle = \
(NodePath(anim, "**/+AnimBundleNode").node()).getBundle() (anim.find("**/+AnimBundleNode").node()).getBundle()
# bind anim # bind anim
bundleNode = ( bundleNode = (