Clear activ id only when it is not same volume

(id could changed)
This commit is contained in:
Filip Sykala - NTB T15p 2023-01-31 12:47:26 +01:00
parent 20529f8cf8
commit fc3dfdd106

View File

@ -1083,7 +1083,9 @@ void GLGizmoEmboss::set_volume_by_selection()
remove_notification_not_valid_font(); remove_notification_not_valid_font();
// Do not use focused input value when switch volume(it must swith value) // Do not use focused input value when switch volume(it must swith value)
if (m_volume != nullptr) ImGui::ClearActiveID(); if (m_volume != nullptr &&
m_volume != vol) // when update volume it changed id BUT not pointer
ImGui::ClearActiveID();
// is select embossed volume? // is select embossed volume?
if (!set_volume(vol)) { if (!set_volume(vol)) {