Browse Source

Ability to suppress pipe info

rdb 17 years ago
parent
commit
a7df865ca5
1 changed files with 3 additions and 2 deletions
  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(