diff options
Diffstat (limited to 'editor/plugins/animation_tree_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/animation_tree_editor_plugin.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/plugins/animation_tree_editor_plugin.cpp b/editor/plugins/animation_tree_editor_plugin.cpp index 2c1da3c10b..28dc5bf5c8 100644 --- a/editor/plugins/animation_tree_editor_plugin.cpp +++ b/editor/plugins/animation_tree_editor_plugin.cpp @@ -115,6 +115,8 @@ void AnimationTreeEditor::edit_path(const Vector<String> &p_path) { button_path.push_back(p_path[i]); } + edited_path = button_path; + for (int i = 0; i < editors.size(); i++) { if (editors[i]->can_edit(node)) { editors[i]->edit(node); @@ -126,10 +128,9 @@ void AnimationTreeEditor::edit_path(const Vector<String> &p_path) { } } else { current_root = 0; + edited_path = button_path; } - edited_path = button_path; - _update_path(); } |