Salome HOME
[bos #40617][CEA] Preserve color with clipping plane
[modules/gui.git] / src / OCCViewer / OCCViewer_ViewWindow.cxx
index 1a1214cc43ae6b25aeb65553cc773be2a675de34..480c7cbe8d2700e253d5a16098a06f0e573d4c6b 100644 (file)
@@ -2492,6 +2492,7 @@ void OCCViewer_ViewWindow::setCuttingPlane( bool on, const double x,  const doub
       Handle(Graphic3d_ClipPlane) aClipPlane = anIter.Value();
       aClipPlane->SetEquation(pln);
       aClipPlane->SetOn(Standard_True);
+      aClipPlane->SetUseObjectMaterial(true);
     } else {
       view->AddClipPlane( myModel->createClipPlane( pln, Standard_True ) );
     }