From a235bab96ca44f8bb33cfe9b5278823a014ace69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Thu, 2 Jul 2020 19:22:09 +0200 Subject: [PATCH] Ignore blend times for inexistent animations (cherry picked from commit fdf1977e8fe3683338dea68ff985bd511b86998f) --- scene/animation/animation_player.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index acba1497d2b..062678de4fc 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -1096,7 +1096,8 @@ void AnimationPlayer::get_animation_list(List *p_animations) const { } void AnimationPlayer::set_blend_time(const StringName &p_animation1, const StringName &p_animation2, float p_time) { - + ERR_FAIL_COND(!animation_set.has(p_animation1)); + ERR_FAIL_COND(!animation_set.has(p_animation2)); ERR_FAIL_COND_MSG(p_time < 0, "Blend time cannot be smaller than 0."); BlendKey bk;