Salome HOME
projects
/
modules
/
gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[bos #40617][CEA] Preserve color with clipping plane
[modules/gui.git]
/
src
/
OCCViewer
/
OCCViewer_ViewWindow.cxx
diff --git
a/src/OCCViewer/OCCViewer_ViewWindow.cxx
b/src/OCCViewer/OCCViewer_ViewWindow.cxx
index 1a1214cc43ae6b25aeb65553cc773be2a675de34..480c7cbe8d2700e253d5a16098a06f0e573d4c6b 100644
(file)
--- a/
src/OCCViewer/OCCViewer_ViewWindow.cxx
+++ b/
src/OCCViewer/OCCViewer_ViewWindow.cxx
@@
-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 ) );
}