From 987c5135a0ea767c2fbf490822f27ccf3de67e97 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 20b16a7504..6e19a54415 100644 --- a/direct/src/p3d/panda3d.pdef +++ b/direct/src/p3d/panda3d.pdef @@ -214,7 +214,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):