Skip to content

Commit

Permalink
Merge pull request #284 from anatawa12/blendshape-index-collapse
Browse files Browse the repository at this point in the history
fix(MergeSkinnedMesh): blendshape index collapse
  • Loading branch information
anatawa12 authored Aug 7, 2023
2 parents f31d71e + 97f57d3 commit 29468c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-PRERELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The format is based on [Keep a Changelog].

### Fixed
- UnusedBonesByReferenceTool error with SMR without mesh `#280`
- MergeSkinnedMesh doesn't work well with eyelids `#284`

### Security

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The format is based on [Keep a Changelog].

### Fixed
- UnusedBonesByReferenceTool error with SMR without mesh `#280`
- MergeSkinnedMesh doesn't work well with eyelids `#284`

### Security

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ TexCoordStatus TexCoordStatusMax(TexCoordStatus x, TexCoordStatus y) =>
var newIndex = target.BlendShapes.FindIndex(x => x.name == name);
if (newIndex == -1)
{
newIndex = target.BlendShapes.Count - 1;
newIndex = target.BlendShapes.Count;
target.BlendShapes.Add((name, weight));
}

Expand Down

0 comments on commit 29468c6

Please sign in to comment.