diff --git a/CHANGELOG.md b/CHANGELOG.md index fd20575..17c0004 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## v3.2.2 ### 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. ## v3.2.1 ### Bug Fixes diff --git a/Editor/d4rkAvatarOptimizer.cs b/Editor/d4rkAvatarOptimizer.cs index f481c4c..f149491 100644 --- a/Editor/d4rkAvatarOptimizer.cs +++ b/Editor/d4rkAvatarOptimizer.cs @@ -2314,9 +2314,9 @@ private HashSet FindAllMovingTransforms() while (stack.Count > 0) { var current = stack.Pop(); + transforms.Add(current); if (exclusions.Contains(current)) continue; - transforms.Add(current); foreach (Transform child in current) { stack.Push(child);