#include <HYDROGUI_Tool2.h>
#include <HYDROGUI_Module.h>
-HYDROGUI_SubmersibleOp::HYDROGUI_SubmersibleOp( HYDROGUI_Module* theModule )
- : HYDROGUI_Operation( theModule )
+HYDROGUI_SubmersibleOp::HYDROGUI_SubmersibleOp( HYDROGUI_Module* theModule, bool isSubmersible )
+ : HYDROGUI_Operation( theModule ), myIsSubmersible( isSubmersible )
{
}
theUpdateFlags = 0;
if( isOK )
{
- bool IsSubmersible = myObject->IsSubmersible();
- if (!IsSubmersible)
- myObject->SetIsSubmersible( true );
+ myObject->SetIsSubmersible( myIsSubmersible );
theUpdateFlags = 0;
}
return isOK;