summaryrefslogtreecommitdiffhomepage
path: root/editor/imgui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/imgui.cpp')
-rw-r--r--editor/imgui.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp
index 3867d227..9f43eda1 100644
--- a/editor/imgui.cpp
+++ b/editor/imgui.cpp
@@ -338,7 +338,7 @@ void app::do_popup_menu()
{
const auto [id, target] = _popup_target;
auto& w = M->world();
- auto eʹ = w.find_object(id);
+ const auto eʹ = w.find_object(id);
if (target == popup_target_type::none || !eʹ)
{
@@ -388,7 +388,10 @@ void app::do_popup_menu()
ImGui::MenuItem("Rotate", nullptr, false, next_rot != e.r && e.can_rotate(next_rot)))
e.rotate(i, next_rot);
if (ImGui::MenuItem("Delete", nullptr, false))
+ {
+ //e.on_destroy(eʹ, false);
e.chunk().remove_object(e.index());
+ }
}
else
_popup_target = {};