diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-24 13:16:40 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-24 13:16:40 +0100 |
commit | d2eae22f0661703507dcbb1407788743827a2862 (patch) | |
tree | f972e46abc016eb7705f517d7560264ecc26cbc4 /editor/imgui.cpp | |
parent | f5d7c6b5e21eed60c3787546de7d41c7440735db (diff) |
editor/inspect: mark scenery modified on write
Diffstat (limited to 'editor/imgui.cpp')
-rw-r--r-- | editor/imgui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp index bb96d78f..38bae066 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -167,7 +167,8 @@ void app::draw_inspector() auto dpi = M->dpi_scale(); ImGui::SetNextWindowSize({300*dpi[0], 0}); auto b2 = begin_window("inspector"_s); - entities::inspect_type(s); + if (entities::inspect_type(s)) + c.mark_scenery_modified(); } } } |