Browse Source

assert model loaded

Darren Ranalli 22 years ago
parent
commit
8c9b7b114b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/level/SpecUtil.py

+ 1 - 0
direct/src/level/SpecUtil.py

@@ -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)