From 5496f3fe939eee47e94d63b1d8cf70fffda58456 Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Fri, 16 Feb 2001 18:53:41 +0000 Subject: [PATCH] *** empty log message *** --- direct/src/fsm/State.py | 4 ++++ direct/src/leveleditor/LevelEditor.py | 6 +++--- direct/src/showbase/Loader.py | 3 +++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/direct/src/fsm/State.py b/direct/src/fsm/State.py index 2460a979b3..a0f1062b77 100644 --- a/direct/src/fsm/State.py +++ b/direct/src/fsm/State.py @@ -55,6 +55,10 @@ class State(DirectObject): """setTransitions(self, string[])""" self.__transitions = stateTransitions + def addTransition(self, transition): + """addTransitions(self, string)""" + self.__transitions.append(transition) + def getInspectorPos(self): """getInspectorPos(self)""" return(self.__inspectorPos) diff --git a/direct/src/leveleditor/LevelEditor.py b/direct/src/leveleditor/LevelEditor.py index 96c4a41469..4d87724a5b 100644 --- a/direct/src/leveleditor/LevelEditor.py +++ b/direct/src/leveleditor/LevelEditor.py @@ -126,9 +126,9 @@ except NameError: loadDNAFile(DNASTORE, 'phase_4/dna/storage.dna', CSDefault, 1) # Load all the neighborhood specific storage files loadDNAFile(DNASTORE, 'phase_4/dna/storage_TT.dna', CSDefault, 1) - #loadDNAFile(DNASTORE, 'phase_6/dna/storage_DD.dna', CSDefault, 1) - #loadDNAFile(DNASTORE, 'phase_6/dna/storage_MM.dna', CSDefault, 1) - #loadDNAFile(DNASTORE, 'phase_6/dna/storage_BR.dna', CSDefault, 1) + loadDNAFile(DNASTORE, 'phase_6/dna/storage_DD.dna', CSDefault, 1) + loadDNAFile(DNASTORE, 'phase_6/dna/storage_MM.dna', CSDefault, 1) + loadDNAFile(DNASTORE, 'phase_6/dna/storage_BR.dna', CSDefault, 1) __builtin__.dnaLoaded = 1 # Precompute class types for type comparisons diff --git a/direct/src/showbase/Loader.py b/direct/src/showbase/Loader.py index 13d1772529..262664fffc 100644 --- a/direct/src/showbase/Loader.py +++ b/direct/src/showbase/Loader.py @@ -8,6 +8,7 @@ class Loader: """Loader class: contains method to load models, sounds and code""" notify = directNotify.newCategory("Loader") + notify.setVerbose(1) # special methods def __init__(self, base): @@ -91,6 +92,7 @@ class Loader: def unloadTexture(self, texture): """unloadTexture(self, texture) """ + Loader.notify.info("Unloading texture: %s" % (texture) ) TexturePool.releaseTexture(texture) # sound loading funcs @@ -105,6 +107,7 @@ class Loader: def unloadSound(self, sound): """unloadSound(self, sound) """ + Loader.notify.info("Unloading sound: %s" % (sound) ) AudioPool.releaseSound(sound)