From 7f8b3683eef23809cb926b081fe06b5f119a45b0 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Thu, 6 Nov 2003 18:26:38 +0000 Subject: [PATCH] import ShowBase, helpful sample --- direct/src/level/SpecUtil.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/direct/src/level/SpecUtil.py b/direct/src/level/SpecUtil.py index e6e799cd2d..dfc8c63474 100755 --- a/direct/src/level/SpecUtil.py +++ b/direct/src/level/SpecUtil.py @@ -1,5 +1,6 @@ """SpecUtil module: contains utility functions for creating and managing level specs""" +from ShowBaseGlobal import * import LevelSpec import LevelConstants import LevelUtil @@ -14,6 +15,13 @@ def makeNewSpec(filename, modelPath, entTypeModule=EntityTypes): privUpdateSpec(spec, modelPath, entTypeModule) spec.saveToDisk(filename, makeBackup=0) +""" +import SpecUtil +import SellbotLegFactorySpec +import FactoryEntityTypes +SpecUtil.updateSpec(SellbotLegFactorySpec, FactoryEntityTypes, 'phase_9/models/cogHQ/newModel') +""" + def updateSpec(specModule, entTypeModule=EntityTypes, modelPath=None): """Call this to update an existing levelSpec to work with a new level model. If the level model has a new path, pass it in as 'modelPath'.