From 5ee695b6291ffe7cce6153f509de0f78f22239aa Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Tue, 18 Jun 2019 08:53:13 +0200 Subject: [PATCH] #2506 - Fixed crash while manually editing SLA supports --- src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.hpp b/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.hpp index fb758d240..afd0087aa 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.hpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.hpp @@ -131,6 +131,11 @@ private: protected: void on_set_state() override; + virtual void on_set_hover_id() + { + if ((int)m_editing_mode_cache.size() <= m_hover_id) + m_hover_id = -1; + } void on_start_dragging(const Selection& selection) override; virtual void on_render_input_window(float x, float y, float bottom_limit, const Selection& selection) override;