From 905f339346633366dab5d4603a8cccc73a31e84b Mon Sep 17 00:00:00 2001 From: Gyedo Jeon Date: Mon, 19 Apr 2010 22:37:16 +0000 Subject: [PATCH] Allowed showBase to be created elsewhere --- direct/src/wxwidgets/WxPandaShell.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/direct/src/wxwidgets/WxPandaShell.py b/direct/src/wxwidgets/WxPandaShell.py index b9c121723b..83073c64f2 100755 --- a/direct/src/wxwidgets/WxPandaShell.py +++ b/direct/src/wxwidgets/WxPandaShell.py @@ -6,7 +6,10 @@ from pandac.PandaModules import * from direct.showbase.ShowBase import * from direct.directtools.DirectGlobals import * -base = ShowBase(False) +try: + base +except NameError: + base = ShowBase(False) from WxAppShell import * from ViewPort import *