diff options
| author | Blazej Floch | 2018-01-08 00:50:51 -0500 |
|---|---|---|
| committer | Blazej Floch | 2018-01-08 03:12:41 -0500 |
| commit | 9d3eb3d2b04647d8132807d6d5c733e3b79b7c9c (patch) | |
| tree | 7f594bca523bfc31bd5248df213379855c6867d9 /editor/scene_tree_dock.cpp | |
| parent | 37ca542d2bfd9aac296e82e30a76117090dea08e (diff) | |
| download | godot-9d3eb3d2b04647d8132807d6d5c733e3b79b7c9c.tar.gz godot-9d3eb3d2b04647d8132807d6d5c733e3b79b7c9c.tar.zst godot-9d3eb3d2b04647d8132807d6d5c733e3b79b7c9c.zip | |
Fixes #15416 - "The deleted nodes are hanging in the inspector."
Diffstat (limited to '')
| -rw-r--r-- | editor/scene_tree_dock.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 1f732992d..d8d44a635 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1285,6 +1285,11 @@ void SceneTreeDock::_delete_confirm() { editor->get_viewport_control()->update(); editor->push_item(NULL); + + // Fixes the EditorHistory from still offering deleted notes + EditorHistory *editor_history = EditorNode::get_singleton()->get_editor_history(); + editor_history->cleanup_history(); + EditorNode::get_singleton()->call("_prepare_history"); } void SceneTreeDock::_selection_changed() { |
