mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix loadModelOnce() to work if the model has been instanced previously
This commit is contained in:
parent
d9283e2049
commit
389440d1d9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user