diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 978a2066f8f..88876d6a9d9 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -1485,7 +1485,9 @@ static void _reset_animation_players(Node *p_node, List(p_node->get_child(i)); if (player && player->is_reset_on_save_enabled() && player->can_apply_reset()) { Ref old_values = player->apply_reset(); - r_anim_backups->push_back(old_values); + if (old_values.is_valid()) { + r_anim_backups->push_back(old_values); + } } _reset_animation_players(p_node->get_child(i), r_anim_backups); }