Fem: move handling of PostAutoRecompute to a central class and by default set its value to true

This commit is contained in:
wmayer
2022-04-07 13:22:13 +02:00
parent 02cb0b8234
commit c4c0304518
6 changed files with 97 additions and 12 deletions

View File

@@ -55,6 +55,7 @@
#include "ui_TaskPostScalarClip.h"
#include "ui_TaskPostWarpVector.h"
#include "FemSettings.h"
#include "TaskPostBoxes.h"
#include "ViewProviderFemPostFilter.h"
#include "ViewProviderFemPostFunction.h"
@@ -300,8 +301,7 @@ TaskPostBox::~TaskPostBox() {
bool TaskPostBox::autoApply() {
ParameterGrp::handle pGroup = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Fem");
return pGroup->GetBool("PostAutoRecompute", false);
return FemSettings().getPostAutoRecompute();
}
void TaskPostBox::recompute() {