Просмотр исходного кода

minor fix when specifying an explicit pipe

David Rose 14 лет назад
Родитель
Сommit
60f62deed1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      direct/src/showbase/ShowBase.py

+ 1 - 1
direct/src/showbase/ShowBase.py

@@ -784,7 +784,7 @@ class ShowBase(DirectObject.DirectObject):
             self.notify.info("Window did not open, removing.")
             self.notify.info("Window did not open, removing.")
             self.closeWindow(self.win)
             self.closeWindow(self.win)
 
 
-        if self.win == None:
+        if self.win == None and not kw.get('pipe', None):
             # Try a little harder if the window wouldn't open.
             # Try a little harder if the window wouldn't open.
             self.makeAllPipes()
             self.makeAllPipes()
             try:
             try: