Salome HOME
Fix problems with the OpenGL clipping planes.
[modules/smesh.git] / src / OBJECT / SMESH_Actor.cxx
index 4ef6a5ceb4ead5fc32e73dbd93bea66a6a0aff19..e8340e7e9a65c60a0c5007e7123b7abbddfe1dab 100644 (file)
@@ -1313,7 +1313,7 @@ void SMESH_ActorDef::SetShrinkFactor(double theValue){
   Modified();
 }
 
-void SMESH_ActorDef::SetShrink(){
+void SMESH_ActorDef::SetShrink() {
   if(!myIsShrinkable) return;
 
   myBaseActor->SetShrink();
@@ -2207,7 +2207,10 @@ SMESH_ActorDef::SetOpenGLClippingPlane()
   my3DExtActor->SetPlaneCollection( myPlaneCollection );
   my3DExtActor->SetUnstructuredGrid(myVisualObj->GetUnstructuredGrid());
 
-  Modified();
+  if(IsShrunk())
+    SetShrink();
+  else  
+    Modified();
 }
 
 void