Sketcher: New Setting for improved dragging mode

This commit is contained in:
Abdullah Tahiri
2017-12-11 16:05:30 +01:00
committed by wmayer
parent 023e319b84
commit ad855c99e3
5 changed files with 38 additions and 19 deletions

View File

@@ -334,7 +334,6 @@ ViewProviderSketch::ViewProviderSketch()
//rubberband selection
rubberband = new Gui::Rubberband();
}
ViewProviderSketch::~ViewProviderSketch()
@@ -5257,6 +5256,11 @@ bool ViewProviderSketch::setEdit(int ModNum)
connectRedoDocument = Gui::Application::Instance->activeDocument()
->signalRedoDocument.connect(boost::bind(&ViewProviderSketch::slotRedoDocument, this, _1));
// Enable solver initial solution update while dragging.
ParameterGrp::handle hGrp2 = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Sketcher");
getSketchObject()->getSolvedSketch().RecalculateInitialSolutionWhileMovingPoint = hGrp2->GetBool("RecalculateInitialSolutionWhileDragging",true);
return true;
}