mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -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)
|
phaseChecker(modelPath)
|
||||||
node = ModelPool.loadModel(modelPath)
|
node = ModelPool.loadModel(modelPath)
|
||||||
if (node != None):
|
if (node != None):
|
||||||
nodePath = NodePath(node)
|
nodePath = NodePath.anyPath(node)
|
||||||
else:
|
else:
|
||||||
nodePath = None
|
nodePath = None
|
||||||
return nodePath
|
return nodePath
|
||||||
|
Loading…
x
Reference in New Issue
Block a user