Constrained gizmo-scaling -> code cleanup and simplification

This commit is contained in:
Enrico Turri
2019-05-10 13:07:59 +02:00
parent 128da453d5
commit d69c98b48d
16 changed files with 50 additions and 280 deletions

View File

@@ -101,10 +101,7 @@ bool GLGizmoCut::on_is_activable(const Selection& selection) const
return selection.is_single_full_instance() && !selection.is_wipe_tower();
}
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
void GLGizmoCut::on_start_dragging(const Selection& selection, const UpdateData::Keys& keys)
//void GLGizmoCut::on_start_dragging(const Selection& selection)
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
void GLGizmoCut::on_start_dragging(const Selection& selection)
{
if (m_hover_id == -1) { return; }