浏览代码

fix async shared model problem

David Rose 19 年之前
父节点
当前提交
ecd81372a3
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
                     # immediately.
                     node = ModelPool.loadModel(modelPath)
-                    nodePath = NodePath(node)
+                    nodePath = NodePath(node.copySubgraph())
                     cb.gotObject(i, nodePath)
 
                 else: