瀏覽代碼

Ability to suppress pipe info

rdb 17 年之前
父節點
當前提交
a7df865ca5
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      direct/src/showbase/ShowBase.py

+ 3 - 2
direct/src/showbase/ShowBase.py

@@ -450,14 +450,15 @@ class ShowBase(DirectObject.DirectObject):
         if self.oldexitfunc:
         if self.oldexitfunc:
             self.oldexitfunc()
             self.oldexitfunc()
 
 
-    def makeDefaultPipe(self):
+    def makeDefaultPipe(self, printPipeTypes = True):
         """
         """
         Creates the default GraphicsPipe, which will be used to make
         Creates the default GraphicsPipe, which will be used to make
         windows unless otherwise specified.
         windows unless otherwise specified.
         """
         """
         assert self.pipe == None
         assert self.pipe == None
         selection = GraphicsPipeSelection.getGlobalPtr()
         selection = GraphicsPipeSelection.getGlobalPtr()
-        selection.printPipeTypes()
+        if printPipeTypes:
+            selection.printPipeTypes()
         self.pipe = selection.makeDefaultPipe()
         self.pipe = selection.makeDefaultPipe()
         if not self.pipe:
         if not self.pipe:
             self.notify.error(
             self.notify.error(