]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewBaseContour.cpp
#3470 merge vtk8itk5wx3-mingw64
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualContour / manualViewBaseContour.cpp
index 89d6ed18e7b68e447e1f41f28a9471364ddea780..58198eef1edbc9d72a39225f21f0233a5b166916 100644 (file)
@@ -314,12 +314,12 @@ void manualViewBaseContour::ConstructVTKObjects()
 //EED 2017-01-01 Migration VTK7
 #if VTK_MAJOR_VERSION <= 5
        _bboxMapper->SetInput(_pd);
+       _bboxMapper->ImmediateModeRenderingOn();
 #else
        _bboxMapper->SetInputData(_pd);
 #endif
 
 
-       _bboxMapper->ImmediateModeRenderingOn();
        _contourVtkActor->SetMapper(_bboxMapper);
        _contourVtkActor->GetProperty()->BackfaceCullingOff();