From ffd836e3b173a52bad95ccdee9f7a5e69a4b2da6 Mon Sep 17 00:00:00 2001 From: Gyedo Jeon Date: Thu, 7 May 2009 00:36:03 +0000 Subject: [PATCH] Added an option to start direct manually --- direct/src/showbase/ShowBase.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index f0cb3d6664..91d8dcb090 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -53,7 +53,7 @@ class ShowBase(DirectObject.DirectObject): notify = directNotify.newCategory("ShowBase") - def __init__(self): + def __init__(self, fStartDirect = True): __builtin__.__dev__ = config.GetBool('want-dev', 0) if config.GetBool('want-variable-dump', 0): ExceptionVarDump.install() @@ -367,7 +367,8 @@ class ShowBase(DirectObject.DirectObject): self.bufferViewer.setRenderParent(self.render2dp) 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 not self.texmem or self.texmem.cleanedUp: