From: enk Date: Wed, 2 Feb 2005 13:35:49 +0000 (+0000) Subject: Do not calc Controls when clipping is changed. X-Git-Tag: V2_2_0b4~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4a31c0f62c598738b612ab5f1810db58271a554c;p=modules%2Fsmesh.git Do not calc Controls when clipping is changed. --- diff --git a/src/OBJECT/SMESH_Actor.cxx b/src/OBJECT/SMESH_Actor.cxx index b3802aefb..dc35fcda2 100644 --- a/src/OBJECT/SMESH_Actor.cxx +++ b/src/OBJECT/SMESH_Actor.cxx @@ -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);