Salome HOME
Do not calc Controls when clipping is changed.
authorenk <enk@opencascade.com>
Wed, 2 Feb 2005 13:35:49 +0000 (13:35 +0000)
committerenk <enk@opencascade.com>
Wed, 2 Feb 2005 13:35:49 +0000 (13:35 +0000)
src/OBJECT/SMESH_Actor.cxx

index b3802ae..dc35fcd 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);