소스 검색

Merge pull request #31478 from kubecz3k/anim-fix

fix animation freeze when playing animation from another AnimationPlayer
Rémi Verschelde 6 년 전
부모
커밋
1b9d4e15de
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      scene/animation/animation_player.cpp

+ 3 - 1
scene/animation/animation_player.cpp

@@ -1200,7 +1200,9 @@ void AnimationPlayer::play(const StringName &p_name, float p_custom_blend, float
 		}
 	}
 
-	_stop_playing_caches();
+	if (get_current_animation() != p_name) {
+		_stop_playing_caches();
+	}
 
 	c.current.from = &animation_set[name];