diff options
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 f35f6329..c8b0dcbd 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -389,8 +389,9 @@ void app::do_popup_menu() e.rotate(i, next_rot); if (ImGui::MenuItem("Delete", nullptr, false)) { - //e.on_destroy(eʹ, false); + e.destroy_script_pre(eʹ, script_destroy_reason::kill); e.chunk().remove_object(e.index()); + e.destroy_script_post(); } } else |