Browse Source

Allowed showBase to be created elsewhere

Gyedo Jeon 15 years ago
parent
commit
905f339346
1 changed files with 4 additions and 1 deletions
  1. 4 1
      direct/src/wxwidgets/WxPandaShell.py

+ 4 - 1
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 *