1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix AnimationTree editor messing up parameters when nested

Fixes #29436
This commit is contained in:
Bojidar Marinov
2019-07-11 21:18:53 +03:00
parent 3bfffcc568
commit 6d92750cf7
2 changed files with 4 additions and 5 deletions

View File

@@ -878,9 +878,7 @@ void AnimationNodeBlendTreeEditor::edit(const Ref<AnimationNode> &p_node) {
blend_tree->disconnect("removed_from_graph", this, "_removed_from_graph");
}
if (p_node.is_valid()) {
blend_tree = p_node;
}
blend_tree = p_node;
if (blend_tree.is_null()) {
hide();