fixes #0002710: Freecad doesn't show sketch elements added when overconstrained

issue #0002836: Crash in sketcher
This commit is contained in:
wmayer
2017-06-02 13:13:34 +02:00
parent 3d86498a43
commit 2004544e57
8 changed files with 212 additions and 695 deletions

View File

@@ -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();