actors can be non-chars now

This commit is contained in:
Joe Shochet 2003-08-18 17:00:45 +00:00
parent 76fa331c85
commit 914189b38c

View File

@ -1098,6 +1098,7 @@ class Actor(PandaObject, NodePath):
bundle = model.find("**/+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))
model.reparentTo(self.__geomNode)
else: else:
self.prepareBundle(bundle, partName, lodName) self.prepareBundle(bundle, partName, lodName)
model.removeNode() model.removeNode()