Skip to content

Commit

Permalink
Fix delete unused game objects not registering phys bone ignore trans…
Browse files Browse the repository at this point in the history
…forms as used. #61
  • Loading branch information
d4rkc0d3r committed Nov 6, 2023
1 parent 85f1602 commit bab6ad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
### Bug Fixes
* Fix phys bone dependency check only checking the moved transforms and not all children. [(more)](https://github.com/d4rkc0d3r/d4rkAvatarOptimizer/issues/61)
* Fix ignored transform in phys bone not being marked as moving despite it being possible thanks to stretch & squish.
* Fix delete unused game objects not registering phys bone ignore transforms as used. [(more)](https://github.com/d4rkc0d3r/d4rkAvatarOptimizer/issues/61)

## v3.2.1
### Bug Fixes
Expand Down
1 change: 1 addition & 0 deletions Editor/d4rkAvatarOptimizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4052,6 +4052,7 @@ private void DestroyUnusedGameObjects()
{
used.Add(physBone.GetRootTransform());
used.Add(physBone.GetRootTransform().parent);
used.UnionWith(physBone.ignoreTransforms);
}

foreach (var collider in GetComponentsInChildren<VRCPhysBoneColliderBase>(true))
Expand Down

0 comments on commit bab6ad5

Please sign in to comment.