From 57f1e5dcdc7d1c35d7367279cca3b3c50b1fc1b8 Mon Sep 17 00:00:00 2001 From: Saracen Date: Sat, 18 Nov 2023 15:36:33 +0000 Subject: [PATCH] Fix imported track flag on sliced animations. --- editor/import/resource_importer_scene.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp index c895c2f6c5b..a06ed69cd03 100644 --- a/editor/import/resource_importer_scene.cpp +++ b/editor/import/resource_importer_scene.cpp @@ -1505,6 +1505,7 @@ void ResourceImporterScene::_create_slices(AnimationPlayer *ap, Ref a new_anim->add_track(anim->track_get_type(j)); dtrack = new_anim->get_track_count() - 1; new_anim->track_set_path(dtrack, anim->track_get_path(j)); + new_anim->track_set_imported(dtrack, true); if (kt > (from + 0.01) && k > 0) { if (anim->track_get_type(j) == Animation::TYPE_POSITION_3D) { @@ -1580,6 +1581,7 @@ void ResourceImporterScene::_create_slices(AnimationPlayer *ap, Ref a new_anim->add_track(anim->track_get_type(j)); dtrack = new_anim->get_track_count() - 1; new_anim->track_set_path(dtrack, anim->track_get_path(j)); + new_anim->track_set_imported(dtrack, true); if (anim->track_get_type(j) == Animation::TYPE_POSITION_3D) { Vector3 p; anim->try_position_track_interpolate(j, from, &p);