If i modify a model through a modeling program and keep the same name, when I run the Panda3d code the model doesn’t change. Looks like the code
doesn’t flush when rerun. Anything I can do to make sure all the models are reloaded from disk?
Do you mean, within a given Python session? Of course, if you exit Python and restart, it will force a reload of everything from disk.
But, within a session, you can force a particular model to be reloaded from disk with:
loader.unloadModel(filename)
model = loader.loadModel(filename)
You can also completely flush the model cache with:
ModelPool.releaseAllModels()
And, for the record, the texture cache with:
TexturePool.releaseAllTextures()
David
Thank you so much!