1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Fixes #15416 - "The deleted nodes are hanging in the inspector."

This commit is contained in:
Blazej Floch
2018-01-08 00:50:51 -05:00
parent 37ca542d2b
commit 9d3eb3d2b0
4 changed files with 19 additions and 8 deletions

View File

@@ -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() {