From 177f2f71a287e4d5f486466874fd09f766a62450 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 21 Dec 2002 02:07:46 +0000 Subject: [PATCH] new window code tweaks --- direct/src/showbase/ShowBase.py | 5 +++-- direct/src/showbase/showBase.cxx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index 1e9b407ed5..0a43953736 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -179,10 +179,10 @@ class ShowBase: """ try: # Temporary try .. except for new window code + self.graphicsEngine.removeAllWindows() + except: for win in self.winList: win.closeWindow() - except: - pass del self.win del self.winList del self.pipe @@ -221,6 +221,7 @@ class ShowBase: pass self.getCameras(chanConfig) + return win def setupRender(self): diff --git a/direct/src/showbase/showBase.cxx b/direct/src/showbase/showBase.cxx index fcac8bb90e..3d44f8424b 100644 --- a/direct/src/showbase/showBase.cxx +++ b/direct/src/showbase/showBase.cxx @@ -28,7 +28,7 @@ // Don't define this unless you have drose's new GraphicsWindow code, // which is currently a work in progress. You probably won't have it // unless you are drose. -//#define NEW_WINDOW_CODE +#define NEW_WINDOW_CODE 1 #ifdef NEW_WINDOW_CODE #include "graphicsPipeSelection.h"