mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
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…
x
Reference in New Issue
Block a user