diff options
Diffstat (limited to 'editor')
-rw-r--r-- | editor/imgui.cpp | 1 | ||||
-rw-r--r-- | editor/scenery-editor.cpp | 1 | ||||
-rw-r--r-- | editor/vobj-editor.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp index c8b0dcbd..b548d527 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -392,6 +392,7 @@ void app::do_popup_menu() e.destroy_script_pre(eʹ, script_destroy_reason::kill); e.chunk().remove_object(e.index()); e.destroy_script_post(); + e.gone = true; } } else diff --git a/editor/scenery-editor.cpp b/editor/scenery-editor.cpp index b472fca5..2c205e3e 100644 --- a/editor/scenery-editor.cpp +++ b/editor/scenery-editor.cpp @@ -99,6 +99,7 @@ start: eʹ->destroy_script_pre(eʹ, script_destroy_reason::kill); c.remove_object(i); eʹ->destroy_script_post(); + eʹ->gone = true; goto start; } break; diff --git a/editor/vobj-editor.cpp b/editor/vobj-editor.cpp index d3eb7bc5..e82c6d27 100644 --- a/editor/vobj-editor.cpp +++ b/editor/vobj-editor.cpp @@ -59,6 +59,7 @@ start: while (auto id = a.get_object_colliding_with_cursor()) eʹ->destroy_script_pre(eʹ, script_destroy_reason::kill); c.remove_object((unsigned)i); eʹ->destroy_script_post(); + eʹ->gone = true; goto start; } } |