Skip to content

Commit

Permalink
Sketcher: New Feature: External Geometry Linking improvement
Browse files Browse the repository at this point in the history
============================================================

It lifts the need of clicking on the external geometry icon upon importing each external geometry element.

All the elements on which the user clicks are imported until the user right clicks with the mouse or presses ESC, like the Trim or Fillet tools.
  • Loading branch information
abdullahtahiriyo authored and wwmayer committed May 30, 2015
1 parent ba5a8fe commit 3231a0c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Mod/Sketcher/Gui/CommandCreateGeo.cpp
Expand Up @@ -4270,7 +4270,10 @@ class DrawSketchHandlerExternal: public DrawSketchHandler

virtual bool releaseButton(Base::Vector2D onSketchPos)
{
sketchgui->purgeHandler(); // no code after this line, Handler get deleted in ViewProvider
/* this is ok not to call to purgeHandler
* in continuous creation mode because the
* handler is destroyed by the quit() method on pressing the
* right button of the mouse */
return true;
}

Expand All @@ -4288,7 +4291,10 @@ class DrawSketchHandlerExternal: public DrawSketchHandler
Gui::Command::commitCommand();
Gui::Command::updateActive();
Gui::Selection().clearSelection();
sketchgui->purgeHandler(); // no code after this line, Handler get deleted in ViewProvider
/* this is ok not to call to purgeHandler
* in continuous creation mode because the
* handler is destroyed by the quit() method on pressing the
* right button of the mouse */
}
catch (const Base::Exception& e) {
Base::Console().Error("%s\n", e.what());
Expand Down

0 comments on commit 3231a0c

Please sign in to comment.