Kaynağa Gözat

Merge pull request #26901 from KidRigger/anim_crash

Prevents a Null Reference in deleting Animations.
Rémi Verschelde 6 yıl önce
ebeveyn
işleme
7b67c5857f
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      editor/animation_track_editor.cpp

+ 4 - 0
editor/animation_track_editor.cpp

@@ -3424,6 +3424,10 @@ void AnimationTrackEditor::_animation_update() {
 
 	bool same = true;
 
+	if (animation.is_null()) {
+		return;
+	}
+
 	if (track_edits.size() == animation->get_track_count()) {
 		//check tracks are the same