Fix for checkbox tooltip

This commit is contained in:
Filip Sykala - NTB T15p 2023-08-22 15:31:26 +02:00
parent 5fc186a904
commit 163f81f1d4

View File

@ -2863,7 +2863,6 @@ bool GLGizmoEmboss::revertible(const std::string &name,
else
ImGuiWrapper::text(name);
bool result = draw();
// render revert changes button
if (changed) {
ImGuiWindow *window = ImGui::GetCurrentWindow();
@ -2876,7 +2875,7 @@ bool GLGizmoEmboss::revertible(const std::string &name,
ImGui::SetTooltip("%s", undo_tooltip.c_str());
window->DC.CursorPosPrevLine.x = prev_x; // set back previous position
}
return result;
return draw();
}