]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxSTLWidget_03.cxx
#3404 creaMaracasVisu Feature New Normal - vtk8itk5wx3-macos
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxSTLWidget_03.cxx
index 9e73b799e4761645ee923f766b845578070a5641..4767c5f3aea21715d52c92af8ae5ad1cd5f9d88b 100644 (file)
@@ -791,13 +791,13 @@ void wxSTLWidget_03::ExtractSurface(int x, int y, int z)
 //EED 2017-01-01 Migration VTK7
 #if VTK_MAJOR_VERSION <= 5
     _2_isoMapperMC6->SetInput(_2_isoMC6->GetOutput());
+    _2_isoMapperMC6->ImmediateModeRenderingOn();
 #else
     _2_isoMapperMC6->SetInputData(_2_isoMC6->GetOutput());
 #endif
 
 
     _2_isoMapperMC6->ScalarVisibilityOff();
-    _2_isoMapperMC6->ImmediateModeRenderingOn();
 
        vtkRenderer *ren = _wxMaracasMPR->GetWxvtkmpr3Dview_BB()->GetWxvtk3Dbaseview()->GetRenderer();