From 647be8464818c4b8aba62d1a3a47269a8a0b1eee Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 28 Feb 2022 17:55:32 +0100 Subject: [PATCH] PD: tmp. suppress errors in helix feature when creating it --- src/Mod/PartDesign/Gui/Command.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Mod/PartDesign/Gui/Command.cpp b/src/Mod/PartDesign/Gui/Command.cpp index 45e4077531..82b6a85149 100644 --- a/src/Mod/PartDesign/Gui/Command.cpp +++ b/src/Mod/PartDesign/Gui/Command.cpp @@ -36,6 +36,7 @@ #include #include +#include #include #include #include @@ -1755,6 +1756,12 @@ void CmdPartDesignAdditiveHelix::activated(int iMsg) if (!Feat) return; + // Creating a helix with default values isn't always valid but fixes + // itself when more values are set. So, this guard is used to suppress + // errors before the user is able to change the parameters. + Base::ObjectStatusLocker guard( + App::Document::IgnoreErrorOnRecompute, Feat->getDocument(), true); + // specific parameters for helix Gui::Command::updateActive();