Merge pull request #22311 from Xrayez/fix-22037

Fix blend tree editor updating invalid blend tree node graph
This commit is contained in:
Juan Linietsky 2018-11-01 16:59:48 -03:00 committed by GitHub
commit 755249f7d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -833,8 +833,6 @@ void AnimationNodeBlendTreeEditor::edit(const Ref<AnimationNode> &p_node) {
if (p_node.is_valid()) { if (p_node.is_valid()) {
blend_tree = p_node; blend_tree = p_node;
} else {
blend_tree.unref();
} }
if (blend_tree.is_null()) { if (blend_tree.is_null()) {