diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-10-01 23:43:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-01 23:43:58 +0200 |
commit | 413f078125c21f1816e06e2deebe30ae4ad19777 (patch) | |
tree | 8fc5c2ca25524594cf0d19aa95b46b22855e9722 | |
parent | d1a51278cdcffd34e8921d53350dd19e2e4fd35e (diff) | |
parent | 3ef241623e499d0ffbf66f7f0ef80459799237b1 (diff) |
Merge pull request #22584 from DualMatrix/editor_path_no_update
Fixed name of deleted node not dissapearing from inspector dock.
-rw-r--r-- | editor/inspector_dock.cpp | 2 | ||||
-rw-r--r-- | editor/scene_tree_dock.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/editor/inspector_dock.cpp b/editor/inspector_dock.cpp index 81a798f0b6..4f4980d83c 100644 --- a/editor/inspector_dock.cpp +++ b/editor/inspector_dock.cpp @@ -259,6 +259,8 @@ void InspectorDock::_prepare_history() { } history_menu->get_popup()->add_icon_item(icon, text, i); } + + editor_path->update_path(); } void InspectorDock::_select_history(int p_idx) const { diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 532b3915a7..b390f2f592 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1574,7 +1574,7 @@ void SceneTreeDock::_delete_confirm() { // 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"); + EditorNode::get_singleton()->get_inspector_dock()->call("_prepare_history"); } void SceneTreeDock::_update_script_button() { |