From 04fc98eaf5985c11a10b7d6b2caf660ec68b4a6c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 5 Feb 2025 07:01:13 +0100 Subject: fix build on newer imgui Note that in the imgui inspector code, `WantReloadUserBuf` is necessary to support wrapping around offset/tile/chunk coordinates on continuous press of one of the +- buttons. See original commit fc5ec6178. --- editor/inspect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor') diff --git a/editor/inspect.cpp b/editor/inspect.cpp index 7302f8bd..f6fcf980 100644 --- a/editor/inspect.cpp +++ b/editor/inspect.cpp @@ -187,7 +187,7 @@ bool do_inspect_field(void* datum, const erased_accessor& accessor, field_repr r { auto* state = ImGui::GetInputTextState(GImGui->ActiveId); if (state) - state->ReloadUserBuf = true; + state->WantReloadUserBuf = true; } return true; } -- cgit v1.2.3