Rectangle selection -> Removed cursor change

This commit is contained in:
Enrico Turri 2019-04-29 08:26:08 +02:00
parent 818f7ad647
commit fdf1b8af81
2 changed files with 7 additions and 7 deletions

View file

@ -2391,7 +2391,7 @@ void GLCanvas3D::on_key(wxKeyEvent& evt)
m_mouse.ignore_left_up = true;
m_dirty = true;
}
set_cursor(Standard);
// set_cursor(Standard);
}
else if (keyCode == WXK_ALT)
{
@ -2402,7 +2402,7 @@ void GLCanvas3D::on_key(wxKeyEvent& evt)
m_mouse.ignore_left_up = true;
m_dirty = true;
}
set_cursor(Standard);
// set_cursor(Standard);
}
else if (keyCode == WXK_CONTROL)
m_dirty = true;
@ -2414,7 +2414,7 @@ void GLCanvas3D::on_key(wxKeyEvent& evt)
if (m_picking_enabled && (m_gizmos.get_current_type() != GLGizmosManager::SlaSupports))
{
m_mouse.ignore_left_up = false;
set_cursor(Cross);
// set_cursor(Cross);
}
}
else if (keyCode == WXK_ALT)
@ -2422,7 +2422,7 @@ void GLCanvas3D::on_key(wxKeyEvent& evt)
if (m_picking_enabled && (m_gizmos.get_current_type() != GLGizmosManager::SlaSupports))
{
m_mouse.ignore_left_up = false;
set_cursor(Cross);
// set_cursor(Cross);
}
}
else if (keyCode == WXK_CONTROL)

View file

@ -861,14 +861,14 @@ bool GLGizmosManager::on_key(wxKeyEvent& evt, GLCanvas3D& canvas)
}
}
if (processed)
canvas.set_cursor(GLCanvas3D::Standard);
// if (processed)
// canvas.set_cursor(GLCanvas3D::Standard);
}
else if (evt.GetEventType() == wxEVT_KEY_DOWN)
{
if ((m_current == SlaSupports) && ((keyCode == WXK_SHIFT) || (keyCode == WXK_ALT)) && reinterpret_cast<GLGizmoSlaSupports*>(get_current())->is_in_editing_mode())
{
canvas.set_cursor(GLCanvas3D::Cross);
// canvas.set_cursor(GLCanvas3D::Cross);
processed = true;
}
}