Skip to content

Commit

Permalink
Merge pull request #58711 from lyuma/fix_gltf_blend_export
Browse files Browse the repository at this point in the history
glTF export for new TYPE_BLEND_SHAPE tracks
  • Loading branch information
akien-mga authored Mar 3, 2022
2 parents b706884 + 35b9646 commit 3f69ea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/gltf/gltf_document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3f69ea4

Please sign in to comment.