Browse Source

Added an option to start direct manually

Gyedo Jeon 16 years ago
parent
commit
ffd836e3b1
1 changed files with 3 additions and 2 deletions
  1. 3 2
      direct/src/showbase/ShowBase.py

+ 3 - 2
direct/src/showbase/ShowBase.py

@@ -53,7 +53,7 @@ class ShowBase(DirectObject.DirectObject):
 
 
     notify = directNotify.newCategory("ShowBase")
     notify = directNotify.newCategory("ShowBase")
 
 
-    def __init__(self):
+    def __init__(self, fStartDirect = True):
         __builtin__.__dev__ = config.GetBool('want-dev', 0)
         __builtin__.__dev__ = config.GetBool('want-dev', 0)
         if config.GetBool('want-variable-dump', 0):
         if config.GetBool('want-variable-dump', 0):
             ExceptionVarDump.install()
             ExceptionVarDump.install()
@@ -367,7 +367,8 @@ class ShowBase(DirectObject.DirectObject):
             self.bufferViewer.setRenderParent(self.render2dp)
             self.bufferViewer.setRenderParent(self.render2dp)
 
 
         if self.windowType != 'none':
         if self.windowType != 'none':
-            self.__doStartDirect()
+            if fStartDirect: # [gjeon] if this is False let them start direct manually
+                self.__doStartDirect()
 
 
             if self.config.GetBool('show-tex-mem', False):
             if self.config.GetBool('show-tex-mem', False):
                 if not self.texmem or self.texmem.cleanedUp:
                 if not self.texmem or self.texmem.cleanedUp: