Browse Source

fix loadModelOnce() to work if the model has been instanced previously

David Rose 23 years ago
parent
commit
389440d1d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/showbase/Loader.py

+ 1 - 1
direct/src/showbase/Loader.py

@@ -50,7 +50,7 @@ class Loader:
             phaseChecker(modelPath)
         node = ModelPool.loadModel(modelPath)
         if (node != None):
-            nodePath = NodePath(node)
+            nodePath = NodePath.anyPath(node)
         else:
             nodePath = None
         return nodePath