From fc5ec61780263dcfa1930e1fb64f302e4d6cf086 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 8 Jun 2024 00:20:03 +0200 Subject: inspect: allow continuous +- button press on chunk/tile/offset --- editor/inspect.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/editor/inspect.cpp b/editor/inspect.cpp index c0fac607..ab177fda 100644 --- a/editor/inspect.cpp +++ b/editor/inspect.cpp @@ -183,7 +183,11 @@ bool do_inspect_field(void* datum, const erased_accessor& accessor, field_repr r T new_value{}; accessor.read_fun(datum, accessor.reader, &new_value); if (value != new_value) - GImGui->ActiveId = 0; + { + auto* state = ImGui::GetInputTextState(GImGui->ActiveId); + if (state) + state->ReloadUserBuf = true; + } return true; } return false; -- cgit v1.2.3