diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index ce02a4772a..87f64dc70d 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -979,6 +979,19 @@ bool ViewProviderSketch::mouseButtonPressed(int Button, bool pressed, const SbVe return false; } +bool ViewProviderSketch::mouseWheelEvent(int delta, const SbVec2s &cursorPos, const Gui::View3DInventorViewer* viewer) +{ + assert(isInEditMode()); + + Q_UNUSED(delta); + Q_UNUSED(cursorPos); + Q_UNUSED(viewer); + + editCoinManager->drawConstraintIcons(); + + return true; +} + void ViewProviderSketch::editDoubleClicked(void) { if (preselection.isPreselectPointValid()) { diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.h b/src/Mod/Sketcher/Gui/ViewProviderSketch.h index d0606ab154..26a461791a 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.h +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.h @@ -522,6 +522,7 @@ public: virtual bool keyPressed(bool pressed, int key) override; /// is called when the Provider is in edit and the mouse is clicked virtual bool mouseButtonPressed(int Button, bool pressed, const SbVec2s& cursorPos, const Gui::View3DInventorViewer* viewer) override; + virtual bool mouseWheelEvent(int delta, const SbVec2s &cursorPos, const Gui::View3DInventorViewer* viewer) override; //@} /// Control the overlays appearing on the Tree and reflecting different sketcher states