diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-08 00:20:03 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-08 01:11:45 +0200 |
commit | fc5ec61780263dcfa1930e1fb64f302e4d6cf086 (patch) | |
tree | 5ff45546b339454488a30fd86ae5d406ea173098 | |
parent | aedf491abf5c70d7573081fde70fdbe5c7878f43 (diff) |
inspect: allow continuous +- button press on chunk/tile/offset
-rw-r--r-- | editor/inspect.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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; |