You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-26 15:46:23 +00:00
Update all AnimationTree's editors when editing
(cherry picked from commit 0f17fe642c)
This commit is contained in:
committed by
Rémi Verschelde
parent
6e95397180
commit
77a4615031
@@ -57,10 +57,11 @@ void AnimationTreeEditor::edit(AnimationTree *p_tree) {
|
|||||||
Vector<String> path;
|
Vector<String> path;
|
||||||
if (tree && tree->has_meta("_tree_edit_path")) {
|
if (tree && tree->has_meta("_tree_edit_path")) {
|
||||||
path = tree->get_meta("_tree_edit_path");
|
path = tree->get_meta("_tree_edit_path");
|
||||||
edit_path(path);
|
|
||||||
} else {
|
} else {
|
||||||
current_root = 0;
|
current_root = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
edit_path(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnimationTreeEditor::_path_button_pressed(int p_path) {
|
void AnimationTreeEditor::_path_button_pressed(int p_path) {
|
||||||
@@ -127,6 +128,11 @@ void AnimationTreeEditor::edit_path(const Vector<String> &p_path) {
|
|||||||
} else {
|
} else {
|
||||||
current_root = 0;
|
current_root = 0;
|
||||||
edited_path = button_path;
|
edited_path = button_path;
|
||||||
|
|
||||||
|
for (int i = 0; i < editors.size(); i++) {
|
||||||
|
editors[i]->edit(Ref<AnimationNode>());
|
||||||
|
editors[i]->hide();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_update_path();
|
_update_path();
|
||||||
|
|||||||
Reference in New Issue
Block a user