Sketcher: On reference constraint double click, change it to driving and enter edit mode

This commit is contained in:
Abdullah Tahiri
2017-04-19 00:02:07 +02:00
committed by wmayer
parent a9322ee73f
commit 72a3ddb2b4

View File

@@ -1005,7 +1005,12 @@ void ViewProviderSketch::editDoubleClicked(void)
Constr->Type == Sketcher::DistanceY ||
Constr->Type == Sketcher::Radius ||
Constr->Type == Sketcher::Angle ||
Constr->Type == Sketcher::SnellsLaw) && Constr->isDriving ) {
Constr->Type == Sketcher::SnellsLaw)) {
if(!Constr->isDriving) {
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.setDriving(%i,%s)",
getObject()->getNameInDocument(),*it,"True");
}
// Coin's SoIdleSensor causes problems on some platform while Qt seems to work properly (#0001517)
EditDatumDialog *editDatumDialog = new EditDatumDialog(this, *it);