Browse Source

fix async shared model problem

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

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

@@ -144,7 +144,7 @@ class Loader(DirectObject):
                     # thread; and maybe we can just make the callback
                     # thread; and maybe we can just make the callback
                     # immediately.
                     # immediately.
                     node = ModelPool.loadModel(modelPath)
                     node = ModelPool.loadModel(modelPath)
-                    nodePath = NodePath(node)
+                    nodePath = NodePath(node.copySubgraph())
                     cb.gotObject(i, nodePath)
                     cb.gotObject(i, nodePath)
 
 
                 else:
                 else: