SLA gizmo can be deselected by clicking in canvas area (unless in editing mode)

This commit is contained in:
Lukas Matena 2019-02-20 09:59:59 +01:00
parent eb0fd03861
commit 4558910a84
2 changed files with 4 additions and 3 deletions

View file

@ -2073,8 +2073,8 @@ bool GLGizmoSlaSupports::mouse_event(SLAGizmoEventType action, const Vec2d& mous
m_editing_mode_cache.emplace_back(std::make_pair(sla::SupportPoint(new_pos, m_new_point_head_diameter/2.f, false), true));
m_unsaved_changes = true;
}
catch (...) { // not clicked on object
return false; // GLCanvas3D might want to deselect the gizmo
catch (...) { // not clicked on object
return true; // prevents deselection of the gizmo by GLCanvas3D
}
return true;
}