mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Make models from 'models' package available under models/ prefix as well
This commit is contained in:
parent
093647365f
commit
e02faec8ac
@ -241,7 +241,10 @@ class models(package):
|
||||
# we assume this is the models directory.
|
||||
pathname = getModelPath().findFile('cmss12.egg')
|
||||
if pathname:
|
||||
dir(pathname.getDirname(), newDir = '')
|
||||
dir(pathname.getDirname(), newDir = 'models')
|
||||
|
||||
# Some people are used to loading the models without models/ prefix.
|
||||
file('models.prc', extract = True, text = "model-path $MODELS_ROOT/models")
|
||||
|
||||
|
||||
class fmod(package):
|
||||
|
Loading…
x
Reference in New Issue
Block a user