more efficient model load

This commit is contained in:
Darren Ranalli 2003-11-20 22:02:22 +00:00
parent 77baf36836
commit 7adb655231

View File

@ -52,7 +52,11 @@ def privUpdateSpec(spec, modelPath, entTypeModule):
'modelFilename', modelPath) 'modelFilename', modelPath)
# load the model # load the model
# disable texture loading for speed
TexturePool.setFakeTextureImage(
'/i/alpha/player/install/ttmodels/src/fonts/ImpressBT.rgb')
model = loader.loadModel(modelPath) model = loader.loadModel(modelPath)
TexturePool.clearFakeTextureImage()
# get the model's zone info # get the model's zone info
modelZoneNum2node = LevelUtil.getZoneNum2Node(model) modelZoneNum2node = LevelUtil.getZoneNum2Node(model)
modelZoneNums = modelZoneNum2node.keys() modelZoneNums = modelZoneNum2node.keys()