summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-03 15:47:52 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-03 15:47:52 +0100
commit3e7fd42b3dbf26d691e56619b4449918d6a74fee (patch)
tree79ab32df637a47d522a8180ae99c3fc0a095b88c /editor
parent235078bae4ada8b7aed3c1cdf95d8288aaf81df4 (diff)
editor/imgui: fix closing inspector windows
Diffstat (limited to 'editor')
-rw-r--r--editor/imgui-inspect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/imgui-inspect.cpp b/editor/imgui-inspect.cpp
index 3b17c106..f7543788 100644
--- a/editor/imgui-inspect.cpp
+++ b/editor/imgui-inspect.cpp
@@ -49,7 +49,7 @@ void app::draw_inspector()
bool is_open = true;
if (auto b2 = begin_window(buf, &is_open))
c.with_scenery_bbox_update(s.index(), [&] { return entities::inspect_type(s); });
- else if (!is_open)
+ if (!is_open)
inspectors.erase(inspectors.begin() + (int)i);
}
}