#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" ) );
}
updateObject( anObject, theMapOfTreated );
}
- if ( !theObject->IsMustBeUpdated() )
+ if ( !myIsForced && !theObject->IsMustBeUpdated() )
return;
theObject->Update();