#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" ) );
}
commitDocOperation();
- module()->update( UF_Model | UF_Viewer | UF_GV_Forced | UF_OCCViewer | UF_OCC_Forced );
+ module()->update( UF_Model | UF_Viewer | UF_GV_Forced | UF_OCCViewer | UF_OCC_Forced | UF_VTKViewer );
commit();
}
updateObject( anObject, theMapOfTreated );
}
- if ( !theObject->IsMustBeUpdated() )
+ if ( !myIsForced && !theObject->IsMustBeUpdated() )
return;
theObject->Update();
+ module()->setIsToUpdate( theObject );
}