From 4a31c0f62c598738b612ab5f1810db58271a554c Mon Sep 17 00:00:00 2001 From: enk Date: Wed, 2 Feb 2005 13:35:49 +0000 Subject: [PATCH] Do not calc Controls when clipping is changed. --- src/OBJECT/SMESH_Actor.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.30.2