소스 검색

Merge pull request #105797 from bruvzg/scroll_crash

Fix `AnimationNodeBlendTree` crash on `Open Editor` button press.
Thaddeus Crews 4 달 전
부모
커밋
7c35e3999d
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      editor/plugins/animation_blend_tree_editor_plugin.cpp

+ 5 - 0
editor/plugins/animation_blend_tree_editor_plugin.cpp

@@ -1024,6 +1024,11 @@ void AnimationNodeBlendTreeEditor::_scroll_changed(const Vector2 &p_scroll) {
 	if (updating) {
 		return;
 	}
+
+	if (blend_tree.is_null()) {
+		return;
+	}
+
 	updating = true;
 	blend_tree->set_graph_offset(p_scroll / EDSCALE);
 	updating = false;