mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-09 03:12:26 +00:00
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:
1 parent
189312624a
commit
32dc4709a4
1 file changed
+5
@@ -2264,7 +2264,12 @@ void GLCanvas3D::on_char(wxKeyEvent& evt)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_gizmos.on_char(evt))
|
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;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//#ifdef __APPLE__
|
//#ifdef __APPLE__
|
||||||
// ctrlMask |= wxMOD_RAW_CONTROL;
|
// ctrlMask |= wxMOD_RAW_CONTROL;
|
||||||
|
|||||||
Reference in new issue
Block a user