Measure Gizmo - Fixed unwanted volume displacement when click and dragging outside of an highlighted feature

This commit is contained in:
enricoturri1966 2022-11-08 11:13:48 +01:00
parent 8681770eaa
commit 38ecef036a

View file

@ -310,6 +310,10 @@ bool GLGizmoMeasure::on_mouse(const wxMouseEvent &mouse_event)
return true;
}
else
// if the mouse pointer is on any volume, filter out the event to prevent the user to move it
// equivalent tp: return (m_parent.get_first_hover_volume_idx() != -1);
return m_curr_feature.has_value();
// fix: prevent restart gizmo when reselect object
// take responsibility for left up