FIX:fix GizmoText failed to change font

Change-Id: I2b6ea7effead4d4667b4a797392396784be9180d
This commit is contained in:
xiangdong.yang 2022-08-26 09:25:22 +08:00 committed by Lane.Wei
parent 05dddcfd3c
commit 03f62ed9ae

View file

@ -148,6 +148,7 @@ void GLGizmoText::on_render_input_window(float x, float y, float bottom_limit)
const bool is_selected = (m_curr_font_idx == i);
if (ImGui::BBLSelectable(cstr_font_names[i], is_selected)) {
m_curr_font_idx = i;
m_font_name = cstr_font_names[m_curr_font_idx];
}
if (is_selected) {
ImGui::SetItemDefaultFocus();