diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-24 10:05:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-24 10:05:00 +0200 |
commit | c7b78b9538de7923882bda2849339bef7405654f (patch) | |
tree | ae51cf6d5c0865cb12e611d7e395b3375405ec83 /modules/gltf | |
parent | b2ab5cb504cef1ffe229523d63b997d5306afce3 (diff) | |
parent | 653e2a550c5e7abe7d400f3a8e17737e1f020211 (diff) |
Merge pull request #53885 from TokageItLab/fix-bone-animation-insertion
Fixed Pos/Rot/Scl 3D Tracks insertion in `SkeletonEditor`
Diffstat (limited to 'modules/gltf')
-rw-r--r-- | modules/gltf/gltf_document.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp index b8da3a713b..0df08a7996 100644 --- a/modules/gltf/gltf_document.cpp +++ b/modules/gltf/gltf_document.cpp @@ -6460,7 +6460,7 @@ void GLTFDocument::_convert_animation(Ref<GLTFState> state, AnimationPlayer *ap, for (int32_t shape_i = 0; shape_i < mesh->get_blend_shape_count(); shape_i++) { String shape_name = mesh->get_blend_shape_name(shape_i); NodePath shape_path = String(path) + ":" + shape_name; - int32_t shape_track_i = animation->find_track(shape_path); + int32_t shape_track_i = animation->find_track(shape_path, Animation::TYPE_BLEND_SHAPE); if (shape_track_i == -1) { GLTFAnimation::Channel<float> weight; weight.interpolation = GLTFAnimation::INTERP_LINEAR; |