Просмотр исходного кода

Make models from 'models' package available under models/ prefix as well

rdb 9 лет назад
Родитель
Сommit
987c5135a0
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      direct/src/p3d/panda3d.pdef

+ 4 - 1
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):