You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix blend tree editor updating invalid blend tree node graph
Editing unreferenced blend tree caused SIGSEGV when updating node graph. Fixes #22037
This commit is contained in:
@@ -846,8 +846,6 @@ void AnimationNodeBlendTreeEditor::edit(const Ref<AnimationNode> &p_node) {
|
||||
|
||||
if (p_node.is_valid()) {
|
||||
blend_tree = p_node;
|
||||
} else {
|
||||
blend_tree.unref();
|
||||
}
|
||||
|
||||
if (blend_tree.is_null()) {
|
||||
|
||||
Reference in New Issue
Block a user