more efficient model load
This commit is contained in:
parent
77baf36836
commit
7adb655231
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue