Salome HOME
Do not calc Controls when clipping is changed.
[modules/smesh.git] / src / OBJECT / SMESH_Actor.cxx
index b3802aefbe1fbf558973965c8fca66bed0e5bb9e..dc35fcda2aa9bba3850ce2767a0bc69933183e44 100644 (file)
@@ -1275,7 +1275,10 @@ void SMESH_ActorDef::Update(){
   if(MYDEBUG) MESSAGE("SMESH_ActorDef::Update");
 
   if(GetControlMode() != eNone) {
-    SetControlMode(GetControlMode());
+    unsigned long aTime = myTimeStamp->GetMTime();
+    unsigned long anObjTime = myVisualObj->GetUnstructuredGrid()->GetMTime();
+    if (anObjTime > aTime)
+      SetControlMode(GetControlMode());
   }
   if(myIsPointsLabeled){
     SetPointsLabeled(myIsPointsLabeled);