diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-20 15:34:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-20 15:34:41 +0100 |
commit | 9e0973ca23423f270df3589e2766a0918e409526 (patch) | |
tree | 23dcbc05cd421ea5d31edbbb052cfb871b9ce1ec /editor/import | |
parent | 3eb585e478d81a3181c2f32356d6a0c69c19db4a (diff) | |
parent | b411a731fef9af1c0a73e4d5b718e5a6b12af1c2 (diff) |
Merge pull request #56972 from lawnjelly/warn_unused
Diffstat (limited to 'editor/import')
-rw-r--r-- | editor/import/resource_importer_scene.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp index b6624a8cfa..940fc442fb 100644 --- a/editor/import/resource_importer_scene.cpp +++ b/editor/import/resource_importer_scene.cpp @@ -1776,7 +1776,8 @@ void ResourceImporterScene::_optimize_track_usage(AnimationPlayer *p_player, Ani if (bone_idx == -1) { continue; } - skel->get_bone_pose(bone_idx); + // Note that this is using get_bone_pose to update the bone pose cache. + _ALLOW_DISCARD_ skel->get_bone_pose(bone_idx); loc = skel->get_bone_pose_position(bone_idx); rot = skel->get_bone_pose_rotation(bone_idx); scale = skel->get_bone_pose_scale(bone_idx); |