From 3231a0c92a6d155039588e8d7788b5f0ca67d592 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Fri, 22 May 2015 14:18:53 +0200 Subject: [PATCH] Sketcher: New Feature: External Geometry Linking improvement ============================================================ 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. --- src/Mod/Sketcher/Gui/CommandCreateGeo.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp b/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp index 1bc2540ef..937bd8d38 100644 --- a/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp +++ b/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp @@ -4270,7 +4270,10 @@ public: 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; } @@ -4288,7 +4291,10 @@ public: 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());