Skip to content

Commit

Permalink
Bug fix: Point was created as construction on construction mode
Browse files Browse the repository at this point in the history
==============================================================

Points should not be construction points.
  • Loading branch information
abdullahtahiriyo authored and wwmayer committed May 30, 2015
1 parent 8685e94 commit 4dfc96e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Mod/Sketcher/Gui/CommandCreateGeo.cpp
Expand Up @@ -3737,14 +3737,7 @@ class DrawSketchHandlerPoint: public DrawSketchHandler
Gui::Command::openCommand("Add sketch point");
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.addGeometry(Part.Point(App.Vector(%f,%f,0)))",
sketchgui->getObject()->getNameInDocument(),
EditPoint.fX,EditPoint.fY);

if(geometryCreationMode==Construction) {
Gui::Command::doCommand(Gui::Command::Doc,
"App.ActiveDocument.%s.toggleConstruction(%d) ",
sketchgui->getObject()->getNameInDocument(),
currentgeoid+1);
}
EditPoint.fX,EditPoint.fY);

Gui::Command::commitCommand();
Gui::Command::updateActive();
Expand Down

0 comments on commit 4dfc96e

Please sign in to comment.