You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Fix crash in #32473. (Automatically seek timeline in selected animation)
This commit is contained in:
@@ -1077,12 +1077,16 @@ void AnimationPlayerEditor::_animation_key_editor_seek(float p_pos, bool p_drag)
|
|||||||
|
|
||||||
if (!is_visible_in_tree())
|
if (!is_visible_in_tree())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!player)
|
if (!player)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (player->is_playing())
|
if (player->is_playing())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!player->has_animation(player->get_assigned_animation()))
|
||||||
|
return;
|
||||||
|
|
||||||
Ref<Animation> anim = player->get_animation(player->get_assigned_animation());
|
Ref<Animation> anim = player->get_animation(player->get_assigned_animation());
|
||||||
|
|
||||||
updating = true;
|
updating = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user