mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -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)
|
'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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user