]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/LineView.cxx
#3474 Refresh optimization DrawAxisTree3D Box
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / LineView.cxx
index 253fa58ab8f1e021f41c8308b5ea309b9c76b8f0..4d49919874205c01fe7e1180e3e2feaa3d06e727 100644 (file)
@@ -89,11 +89,11 @@ void LineView::CreateNewLine(double x1, double y1, double z1, double x2, double
 //EED 2017-01-01 Migration VTK7
 #if VTK_MAJOR_VERSION <= 5
        contour_mapped.back()->SetInput(aLineGrid);
+       contour_mapped.back()->ImmediateModeRenderingOn();
 #else
        contour_mapped.back()->SetInputData(aLineGrid);
 #endif
 
-       contour_mapped.back()->ImmediateModeRenderingOn();
 
        contour_actor.back()->SetMapper(contour_mapped.back());
        contour_actor.back()->GetProperty()->BackfaceCullingOn();