Workaround to fix gizmos' imgui dialog not showing up the first time the user activates them by using keyboard shortcuts.

This commit is contained in:
Enrico Turri 2019-08-23 12:27:46 +02:00
parent 189312624a
commit 32dc4709a4

View File

@ -2264,7 +2264,12 @@ void GLCanvas3D::on_char(wxKeyEvent& evt)
return;
if (m_gizmos.on_char(evt))
{
// FIXME: Without the following call to render(), the gimgui dialogs are not shown the first time the user tries to open them using the keyboard shortcuts
// (it looks like as if 2 render calls are needed before they show up)
render();
return;
}
//#ifdef __APPLE__
// ctrlMask |= wxMOD_RAW_CONTROL;