FIX:fix GizmoText failed to change font
Change-Id: I2b6ea7effead4d4667b4a797392396784be9180d
This commit is contained in:
parent
05dddcfd3c
commit
03f62ed9ae
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
const bool is_selected = (m_curr_font_idx == i);
|
||||||
if (ImGui::BBLSelectable(cstr_font_names[i], is_selected)) {
|
if (ImGui::BBLSelectable(cstr_font_names[i], is_selected)) {
|
||||||
m_curr_font_idx = i;
|
m_curr_font_idx = i;
|
||||||
|
m_font_name = cstr_font_names[m_curr_font_idx];
|
||||||
}
|
}
|
||||||
if (is_selected) {
|
if (is_selected) {
|
||||||
ImGui::SetItemDefaultFocus();
|
ImGui::SetItemDefaultFocus();
|
||||||
|
|
Loading…
Reference in a new issue