diff options
author | Lyuma <xn.lyuma@gmail.com> | 2022-03-03 05:28:00 -0800 |
---|---|---|
committer | Lyuma <xn.lyuma@gmail.com> | 2022-03-03 05:28:00 -0800 |
commit | 35b964606e823a8d2c3633f0edf9e80f84b6edc6 (patch) | |
tree | 29304e3f2ff335cbed1f0b7788ee2c03bb6c5403 | |
parent | cfd4433bbc26f8a1eb706695862b4c31dc82e594 (diff) |
glTF export for new TYPE_BLEND_SHAPE tracks
-rw-r--r-- | modules/gltf/gltf_document.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp index 2c42879bd3..c70081a620 100644 --- a/modules/gltf/gltf_document.cpp +++ b/modules/gltf/gltf_document.cpp @@ -6470,8 +6470,8 @@ void GLTFDocument::_convert_animation(Ref<GLTFState> state, AnimationPlayer *ap, gltf_animation->get_tracks().insert(transform_track_i.key, track); } } - } else if (String(orig_track_path).contains(":blend_shapes/")) { - const Vector<String> node_suffix = String(orig_track_path).split(":blend_shapes/"); + } else if (String(orig_track_path).contains(":") && animation->track_get_type(track_i) == Animation::TYPE_BLEND_SHAPE) { + const Vector<String> node_suffix = String(orig_track_path).split(":"); const NodePath path = node_suffix[0]; const String suffix = node_suffix[1]; Node *node = ap->get_parent()->get_node_or_null(path); |