mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
assert model loaded
This commit is contained in:
parent
ea262c92cb
commit
8c9b7b114b
@ -56,6 +56,7 @@ def privUpdateSpec(spec, modelPath, entTypeModule):
|
|||||||
TexturePool.setFakeTextureImage(
|
TexturePool.setFakeTextureImage(
|
||||||
'/i/alpha/player/install/ttmodels/src/fonts/ImpressBT.rgb')
|
'/i/alpha/player/install/ttmodels/src/fonts/ImpressBT.rgb')
|
||||||
model = loader.loadModel(modelPath)
|
model = loader.loadModel(modelPath)
|
||||||
|
assert model is not None
|
||||||
TexturePool.clearFakeTextureImage()
|
TexturePool.clearFakeTextureImage()
|
||||||
# get the model's zone info
|
# get the model's zone info
|
||||||
modelZoneNum2node = LevelUtil.getZoneNum2Node(model)
|
modelZoneNum2node = LevelUtil.getZoneNum2Node(model)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user