Salome HOME
Refs #288 - the profile section selected and addition mode is activated
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_UpdateObjectOp.cxx
index c653c10757f24ff15eec887d00aecca459f8fc69..40af609bace836c22986b82a07c87746e40fe2b1 100644 (file)
 #include <HYDROData_Document.h>
 #include <HYDROData_Image.h>
 
-HYDROGUI_UpdateObjectOp::HYDROGUI_UpdateObjectOp( HYDROGUI_Module* theModule )
-: HYDROGUI_Operation( theModule )
+HYDROGUI_UpdateObjectOp::HYDROGUI_UpdateObjectOp( HYDROGUI_Module* theModule,
+                                                  const bool       theIsForced )
+: HYDROGUI_Operation( theModule ),
+  myIsForced( theIsForced )
 {
   setName( tr( "UPDATE_IMAGE" ) );
 }
@@ -75,7 +77,7 @@ void HYDROGUI_UpdateObjectOp::updateObject( const Handle(HYDROData_Entity)& theO
     updateObject( anObject, theMapOfTreated );
   }
 
-  if ( !theObject->IsMustBeUpdated() )
+  if ( !myIsForced && !theObject->IsMustBeUpdated() )
     return;
 
   theObject->Update();