mirror of
https://github.com/godotengine/godot.git
synced 2025-01-18 20:40:57 +08:00
Fix crash in #32473. (Automatically seek timeline in selected animation)
This commit is contained in:
parent
893ebd3080
commit
c6e577fed9
@ -1077,12 +1077,16 @@ void AnimationPlayerEditor::_animation_key_editor_seek(float p_pos, bool p_drag)
|
||||
|
||||
if (!is_visible_in_tree())
|
||||
return;
|
||||
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
if (player->is_playing())
|
||||
return;
|
||||
|
||||
if (!player->has_animation(player->get_assigned_animation()))
|
||||
return;
|
||||
|
||||
Ref<Animation> anim = player->get_animation(player->get_assigned_animation());
|
||||
|
||||
updating = true;
|
||||
|
Loading…
Reference in New Issue
Block a user