fixes #0002710: Freecad doesn't show sketch elements added when overconstrained
issue #0002836: Crash in sketcher
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
|
||||
#include "ViewProviderSketch.h"
|
||||
#include "GeometryCreationMode.h"
|
||||
#include "CommandConstraints.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace SketcherGui;
|
||||
@@ -143,12 +144,8 @@ void CmdSketcherToggleConstruction::activated(int iMsg)
|
||||
}
|
||||
// finish the transaction and update
|
||||
commitCommand();
|
||||
|
||||
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Sketcher");
|
||||
bool autoRecompute = hGrp->GetBool("AutoRecompute",false);
|
||||
|
||||
if(autoRecompute) // toggling does not modify the DoF of the solver, however it may affect features depending on the sketch
|
||||
Gui::Command::updateActive();
|
||||
|
||||
tryAutoRecompute();
|
||||
|
||||
// clear the selection (convenience)
|
||||
getSelection().clearSelection();
|
||||
|
||||
Reference in New Issue
Block a user