From 7adb6552317d63f93b5d45b80f276261a02b6174 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Thu, 20 Nov 2003 22:02:22 +0000 Subject: [PATCH] more efficient model load --- direct/src/level/SpecUtil.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/direct/src/level/SpecUtil.py b/direct/src/level/SpecUtil.py index c33056b9cc..56cf22cae0 100755 --- a/direct/src/level/SpecUtil.py +++ b/direct/src/level/SpecUtil.py @@ -52,7 +52,11 @@ def privUpdateSpec(spec, modelPath, entTypeModule): 'modelFilename', modelPath) # load the model + # disable texture loading for speed + TexturePool.setFakeTextureImage( + '/i/alpha/player/install/ttmodels/src/fonts/ImpressBT.rgb') model = loader.loadModel(modelPath) + TexturePool.clearFakeTextureImage() # get the model's zone info modelZoneNum2node = LevelUtil.getZoneNum2Node(model) modelZoneNums = modelZoneNum2node.keys()