From e02faec8ac07b78cd77c7221d1380533e42b2c0f Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 29 May 2016 01:59:51 +0200 Subject: [PATCH] Make models from 'models' package available under models/ prefix as well --- direct/src/p3d/panda3d.pdef | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/direct/src/p3d/panda3d.pdef b/direct/src/p3d/panda3d.pdef index 59e53cb39b..690ee16227 100644 --- a/direct/src/p3d/panda3d.pdef +++ b/direct/src/p3d/panda3d.pdef @@ -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):