Browse Source

added dev assert

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

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

@@ -41,6 +41,7 @@ def updateSpec(specModule, entTypeModule=EntityTypes, modelPath=None):
 
 
 def privUpdateSpec(spec, modelPath, entTypeModule):
 def privUpdateSpec(spec, modelPath, entTypeModule):
     """internal: take a spec and update it to match its level model"""
     """internal: take a spec and update it to match its level model"""
+    assert __dev__
     assert type(entTypeModule) is types.ModuleType
     assert type(entTypeModule) is types.ModuleType
     import EntityTypeRegistry
     import EntityTypeRegistry
     etr = EntityTypeRegistry.EntityTypeRegistry(entTypeModule)
     etr = EntityTypeRegistry.EntityTypeRegistry(entTypeModule)