Skip to content

Commit 04fc98e

Browse files
committed
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 fc5ec61.
1 parent a591562 commit 04fc98e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/inspect.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ bool do_inspect_field(void* datum, const erased_accessor& accessor, field_repr r
187187
{
188188
auto* state = ImGui::GetInputTextState(GImGui->ActiveId);
189189
if (state)
190-
state->ReloadUserBuf = true;
190+
state->WantReloadUserBuf = true;
191191
}
192192
return true;
193193
}

0 commit comments

Comments
 (0)