Skip to content

Commit ea0682d

Browse files
authored
Merge pull request #159 from mwestphal/respect_output_window_conf
Respect output window conf
2 parents ed3f1af + 31f4d8c commit ea0682d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/F3DLoader.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ F3DLoader::F3DLoader()
5353
vtkObjectFactory::RegisterFactory(factory);
5454
vtkObjectFactory::SetAllEnableFlags(0, "vtkPolyDataMapper", "vtkOpenGLPolyDataMapper");
5555

56+
// Make sure to initialize the output window
57+
// after the object factory and before the first usage.
58+
F3DLog::SetQuiet(false);
59+
5660
this->ReaderInstantiator = new F3DReaderInstantiator();
5761
}
5862

src/vtkF3DWin32OutputWindow.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ int vtkF3DWin32OutputWindow::Initialize()
4848

4949
void vtkF3DWin32OutputWindow::DisplayText(const char* someText)
5050
{
51+
if (this->GetDisplayStream(this->GetCurrentMessageType()) == StreamType::Null)
52+
{
53+
return;
54+
}
55+
5156
if (!this->Initialize())
5257
{
5358
return;

0 commit comments

Comments
 (0)