assert model loaded

This commit is contained in:
Darren Ranalli 2003-11-26 04:25:26 +00:00
parent ea262c92cb
commit 8c9b7b114b

View File

@ -56,6 +56,7 @@ def privUpdateSpec(spec, modelPath, entTypeModule):
TexturePool.setFakeTextureImage(
'/i/alpha/player/install/ttmodels/src/fonts/ImpressBT.rgb')
model = loader.loadModel(modelPath)
assert model is not None
TexturePool.clearFakeTextureImage()
# get the model's zone info
modelZoneNum2node = LevelUtil.getZoneNum2Node(model)