Browse Source

actors can be non-chars now

Joe Shochet 22 years ago
parent
commit
914189b38c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/actor/Actor.py

+ 1 - 0
direct/src/actor/Actor.py

@@ -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()