PD: tmp. suppress errors in helix feature when creating it

This commit is contained in:
wmayer
2022-02-28 17:55:32 +01:00
parent 7f8940b858
commit 647be84648

View File

@@ -36,6 +36,7 @@
#include <App/Origin.h>
#include <App/Part.h>
#include <Base/Tools.h>
#include <Gui/Application.h>
#include <Gui/Command.h>
#include <Gui/CommandT.h>
@@ -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<App::Document::Status, App::Document> guard(
App::Document::IgnoreErrorOnRecompute, Feat->getDocument(), true);
// specific parameters for helix
Gui::Command::updateActive();