Skip to content

Commit

Permalink
Merge pull request #586 from anatawa12/fix-humanoid-avatar-mask
Browse files Browse the repository at this point in the history
fix: AvatarMask about Humanoid Bone is not working
  • Loading branch information
anatawa12 authored Oct 14, 2023
2 parents 0f34658 + e180b58 commit 8c38b90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-PRERELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The format is based on [Keep a Changelog].
### Fixed
- Error with MeshRenderer without MeshFilter `#581`
- Preview not working with VRMConverter `#582`
- AvatarMask about HumanoidBone broken `#586`

### Security

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The format is based on [Keep a Changelog].
### Fixed
- Error with MeshRenderer without MeshFilter `#581`
- Preview not working with VRMConverter `#582`
- AvatarMask about HumanoidBone broken `#586`

### Security

Expand Down
2 changes: 2 additions & 0 deletions Editor/Processors/ApplyObjectMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ private Object CustomClone(Object o)
else if (o is AvatarMask mask)
{
var newMask = new AvatarMask();
for (var part = AvatarMaskBodyPart.Root; part < AvatarMaskBodyPart.LastBodyPart; ++part)
newMask.SetHumanoidBodyPartActive(part, mask.GetHumanoidBodyPartActive(part));
newMask.name = "rebased " + mask.name;
newMask.transformCount = mask.transformCount;
var dstI = 0;
Expand Down

0 comments on commit 8c38b90

Please sign in to comment.