Ability to suppress pipe info
This commit is contained in:
parent
d14ebd80aa
commit
a7df865ca5
|
|
@ -450,14 +450,15 @@ class ShowBase(DirectObject.DirectObject):
|
|||
if self.oldexitfunc:
|
||||
self.oldexitfunc()
|
||||
|
||||
def makeDefaultPipe(self):
|
||||
def makeDefaultPipe(self, printPipeTypes = True):
|
||||
"""
|
||||
Creates the default GraphicsPipe, which will be used to make
|
||||
windows unless otherwise specified.
|
||||
"""
|
||||
assert self.pipe == None
|
||||
selection = GraphicsPipeSelection.getGlobalPtr()
|
||||
selection.printPipeTypes()
|
||||
if printPipeTypes:
|
||||
selection.printPipeTypes()
|
||||
self.pipe = selection.makeDefaultPipe()
|
||||
if not self.pipe:
|
||||
self.notify.error(
|
||||
|
|
|
|||
Loading…
Reference in New Issue