diff options
author | Silc 'Tokage' Renew <tokage.it.lab@gmail.com> | 2021-10-16 10:04:09 +0900 |
---|---|---|
committer | Silc 'Tokage' Renew <tokage.it.lab@gmail.com> | 2021-10-23 16:50:00 +0900 |
commit | 653e2a550c5e7abe7d400f3a8e17737e1f020211 (patch) | |
tree | b399638e3189d0dff99c56547d2f89228d8b5337 /modules | |
parent | f1f51f5d4b2a4cdf9668fb90387c5d062f2a548b (diff) |
Fixed animation insertion in SkeletonEditor
Diffstat (limited to 'modules')
-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; |