From 85f160279e7c7cef81dbcd399902a59ee1d0ee87 Mon Sep 17 00:00:00 2001 From: d4rkc0d3r <1735522+d4rkc0d3r@users.noreply.github.com> Date: Mon, 6 Nov 2023 16:33:40 +0100 Subject: [PATCH] Fix ignored transform in phys bone not being marked as moving. --- CHANGELOG.md | 1 + Editor/d4rkAvatarOptimizer.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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);