Skip to content

Commit

Permalink
Merge pull request #78495 from lyuma/import_tracks_single_clip
Browse files Browse the repository at this point in the history
Fix Import Tracks import setting for single clip
  • Loading branch information
akien-mga committed Jun 21, 2023
2 parents d252f43 + 0d0e8b0 commit 5285927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/import/resource_importer_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ Node *ResourceImporterScene::_pre_fix_animations(Node *p_node, Node *p_root, con
AnimationImportTracks(int(node_settings["import_tracks/scale"]))
};

if (anims.size() > 1 && (import_tracks_mode[0] != ANIMATION_IMPORT_TRACKS_IF_PRESENT || import_tracks_mode[1] != ANIMATION_IMPORT_TRACKS_IF_PRESENT || import_tracks_mode[2] != ANIMATION_IMPORT_TRACKS_IF_PRESENT)) {
if (!anims.is_empty() && (import_tracks_mode[0] != ANIMATION_IMPORT_TRACKS_IF_PRESENT || import_tracks_mode[1] != ANIMATION_IMPORT_TRACKS_IF_PRESENT || import_tracks_mode[2] != ANIMATION_IMPORT_TRACKS_IF_PRESENT)) {
_optimize_track_usage(ap, import_tracks_mode);
}
}
Expand Down

0 comments on commit 5285927

Please sign in to comment.