Skip to content

Commit

Permalink
Fix scaled bones not getting treated as "moving" bone when combining …
Browse files Browse the repository at this point in the history
…meshes
  • Loading branch information
d4rkc0d3r committed May 17, 2024
1 parent c97ef37 commit d0d97da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## v3.6.3
### Bug Fixes
* Fix mesh combining bone scale fix not normalizing the scale of all the parents of the bones during bake.
* Fix scaled bones not getting treated as "moving" bone when combining meshes.

## v3.6.2
### Changes
Expand Down
2 changes: 2 additions & 0 deletions Editor/d4rkAvatarOptimizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2867,6 +2867,8 @@ private HashSet<Transform> FindAllMovingTransforms()
}
}

transforms.UnionWith(transform.GetAllDescendants().Where(t => t.localScale != Vector3.one));

return cache_FindAllMovingTransforms = transforms;
}

Expand Down

0 comments on commit d0d97da

Please sign in to comment.