Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
fix BlendShape error check
Browse files Browse the repository at this point in the history
  • Loading branch information
ousttrue committed Feb 4, 2018
1 parent ce6d5b5 commit edd408b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Core/Scripts/IO/gltfImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,9 @@ static MeshWithMaterials ImportMesh(glTF gltf, glTFMesh gltfMesh, Material[] mat
var targets = gltfMesh.primitives[0].targets;
for (int i = 1; i < gltfMesh.primitives.Count; ++i)
{
if (gltfMesh.primitives[i].targets != targets)
if (!gltfMesh.primitives[i].targets.SequenceEqual(targets))
{
throw new FormatException(string.Format("diffirent targets: {0} with {1}",
throw new NotImplementedException(string.Format("diffirent targets: {0} with {1}",
gltfMesh.primitives[i],
targets));
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

## Version

* 20180205 [1.2](https://github.com/ousttrue/UniGLTF/releases/tag/v1.2)
* 20180205 [1.2.1](https://github.com/ousttrue/UniGLTF/releases/tag/v1.2.1)
* 20180129 [1.0.1](https://github.com/ousttrue/UniGLTF/releases/tag/v1.0.1) first version.

## Install
Expand Down

0 comments on commit edd408b

Please sign in to comment.