From fbda0498fd34de025d764ae9c9c2bc4cf59091f3 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Fri, 17 Dec 2021 15:05:51 +0100 Subject: [PATCH] Sketcher: Fix recompute issue ============================= Bug: https://forum.freecadweb.org/viewtopic.php?f=3&t=64548 Apparently a find/replace gone wrong when moving code in: f29a6a051890ca9f26a7d898550df90764bb9855 --- src/Mod/Sketcher/Gui/Utils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Sketcher/Gui/Utils.cpp b/src/Mod/Sketcher/Gui/Utils.cpp index c36ab2ca20..049347f1b6 100644 --- a/src/Mod/Sketcher/Gui/Utils.cpp +++ b/src/Mod/Sketcher/Gui/Utils.cpp @@ -61,23 +61,23 @@ using namespace Sketcher; bool SketcherGui::tryAutoRecompute(Sketcher::SketchObject* obj, bool &autoremoveredundants) { ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Sketcher"); - bool autoUtils = hGrp->GetBool("AutoUtils",false); + bool autoRecompute = hGrp->GetBool("AutoRecompute",false); bool autoRemoveRedundants = hGrp->GetBool("AutoRemoveRedundants",false); // We need to make sure the solver has right redundancy information before trying to remove the redundants. // for example if a non-driving constraint has been added. - if(autoRemoveRedundants && autoUtils) + if(autoRemoveRedundants && autoRecompute) obj->solve(); if(autoRemoveRedundants) obj->autoRemoveRedundants(); - if (autoUtils) + if (autoRecompute) Gui::Command::updateActive(); autoremoveredundants = autoRemoveRedundants; - return autoUtils; + return autoRecompute; } bool SketcherGui::tryAutoRecompute(Sketcher::SketchObject* obj)