Merge pull request #105797 from bruvzg/scroll_crash
Fix `AnimationNodeBlendTree` crash on `Open Editor` button press.
This commit is contained in:
@ -1024,6 +1024,11 @@ void AnimationNodeBlendTreeEditor::_scroll_changed(const Vector2 &p_scroll) {
|
|||||||
if (updating) {
|
if (updating) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (blend_tree.is_null()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
updating = true;
|
updating = true;
|
||||||
blend_tree->set_graph_offset(p_scroll / EDSCALE);
|
blend_tree->set_graph_offset(p_scroll / EDSCALE);
|
||||||
updating = false;
|
updating = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user