updateArguments(theFeature);
aCurrentlyUpdated.erase(theFeature);
}
- if (theFeature->data()->execState() == ModelAPI_StateMustBeUpdated) {
- theFeature->data()->execState(ModelAPI_StateDone);
- static ModelAPI_ValidatorsFactory* aFactory = ModelAPI_Session::get()->validators();
- aFactory->validate(theFeature); // need to be validated to update the "Apply" state if not previewed
- }
+ // make it without conditions otherwise the apply button may have a bad state
+ theFeature->data()->execState(ModelAPI_StateDone);
+ static ModelAPI_ValidatorsFactory* aFactory = ModelAPI_Session::get()->validators();
+ aFactory->validate(theFeature); // need to be validated to update the "Apply" state if not previewed
+
if (!myIsPreviewBlocked)
return true;
}