From 32dc4709a48bea7089d7d84d22e89e4db98baa49 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Fri, 23 Aug 2019 12:27:46 +0200 Subject: [PATCH] Workaround to fix gizmos' imgui dialog not showing up the first time the user activates them by using keyboard shortcuts. --- src/slic3r/GUI/GLCanvas3D.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 3e668c4d8..8c15d0fb6 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -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;