PD: tmp. suppress errors in helix feature when creating it
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user