From 46725ceee19b3a68c63935858d65ea498136d9da Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 27 Mar 2024 09:17:29 +0000 Subject: [PATCH 1/4] chore: prepare for next version: 1.6.10 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7cef979b4..5efdc69a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.anatawa12.avatar-optimizer", - "version": "1.6.9", + "version": "1.6.10-beta.0", "private": false, "unity": "2019.4", "description": "Set of Anatawa12's Small Avatar Optimization Utilities", From 4565ed573f244e8d23d354e0551ecbfb057f23a6 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Fri, 5 Apr 2024 20:50:17 +0900 Subject: [PATCH 2/4] fix: MissingReferenceException if some component is removed by T&O --- .../Processors/TraceAndOptimize/FindUnusedObjectsProcessor.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Editor/Processors/TraceAndOptimize/FindUnusedObjectsProcessor.cs b/Editor/Processors/TraceAndOptimize/FindUnusedObjectsProcessor.cs index 95887266a..c1196e669 100644 --- a/Editor/Processors/TraceAndOptimize/FindUnusedObjectsProcessor.cs +++ b/Editor/Processors/TraceAndOptimize/FindUnusedObjectsProcessor.cs @@ -125,7 +125,9 @@ private void ActivenessAnimation(GCComponentInfoHolder componentInfos) do { - var current = GetEntrypointActiveness(enumerator.Current, _context); + var component = enumerator.Current; + if (component == null) continue; + var current = GetEntrypointActiveness(component, _context); resultSet.IntersectWith(current); } while (enumerator.MoveNext() && resultSet.Count != 0); } From a4bb2082115c9a6f004f004edb2f2009e1b1c9a3 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Fri, 5 Apr 2024 20:51:27 +0900 Subject: [PATCH 3/4] docs(changelog): Missing Reference Exception --- CHANGELOG-PRERELEASE.md | 1 + CHANGELOG.md | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG-PRERELEASE.md b/CHANGELOG-PRERELEASE.md index 1c19e8c7e..300b74925 100644 --- a/CHANGELOG-PRERELEASE.md +++ b/CHANGELOG-PRERELEASE.md @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog]. ### Removed ### Fixed +- Missing Reference Exception with Trace and Optimize `#986` ### Security diff --git a/CHANGELOG.md b/CHANGELOG.md index cf562e1ba..9fa716038 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog]. ### Removed ### Fixed +- Missing Reference Exception with Trace and Optimize `#986` ### Security From 2a32104e547c4d8bb9225312131b3451dfc35065 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 5 Apr 2024 12:00:53 +0000 Subject: [PATCH 4/4] chore: bump version to 1.6.10 --- CHANGELOG-PRERELEASE.md | 8 ++++++-- CHANGELOG.md | 8 ++++++-- package.json | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGELOG-PRERELEASE.md b/CHANGELOG-PRERELEASE.md index 300b74925..0e0b7c8a4 100644 --- a/CHANGELOG-PRERELEASE.md +++ b/CHANGELOG-PRERELEASE.md @@ -16,10 +16,13 @@ The format is based on [Keep a Changelog]. ### Removed ### Fixed -- Missing Reference Exception with Trace and Optimize `#986` ### Security +## [1.6.10] - 2024-04-05 +### Fixed +- Missing Reference Exception with Trace and Optimize [`#986`](https://github.com/anatawa12/AvatarOptimizer/pull/986) + ## [1.6.9] - 2024-03-27 ## [1.6.9-beta.3] - 2024-03-24 ### Fixed @@ -1185,7 +1188,8 @@ This release is mistake. - Merge Bone - Clear Endpoint Position -[Unreleased]: https://github.com/anatawa12/AvatarOptimizer/compare/v1.6.9...HEAD +[Unreleased]: https://github.com/anatawa12/AvatarOptimizer/compare/v1.6.10...HEAD +[1.6.10]: https://github.com/anatawa12/AvatarOptimizer/compare/v1.6.9...v1.6.10 [1.6.9]: https://github.com/anatawa12/AvatarOptimizer/compare/v1.6.9-beta.3...v1.6.9 [1.6.9-beta.3]: https://github.com/anatawa12/AvatarOptimizer/compare/v1.6.9-beta.2...v1.6.9-beta.3 [1.6.9-beta.2]: https://github.com/anatawa12/AvatarOptimizer/compare/v1.6.9-beta.1...v1.6.9-beta.2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fa716038..89d56a95d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,10 +16,13 @@ The format is based on [Keep a Changelog]. ### Removed ### Fixed -- Missing Reference Exception with Trace and Optimize `#986` ### Security +## [1.6.10] - 2024-04-05 +### Fixed +- Missing Reference Exception with Trace and Optimize [`#986`](https://github.com/anatawa12/AvatarOptimizer/pull/986) + ## [1.6.9] - 2024-03-27 ### Added - Support for VRCSDK 3.5.2 [`#926`](https://github.com/anatawa12/AvatarOptimizer/pull/926) [`#935`](https://github.com/anatawa12/AvatarOptimizer/pull/935) @@ -758,7 +761,8 @@ The format is based on [Keep a Changelog]. - Merge Bone - Clear Endpoint Position -[Unreleased]: https://github.com/anatawa12/AvatarOptimizer/compare/v1.6.9...HEAD +[Unreleased]: https://github.com/anatawa12/AvatarOptimizer/compare/v1.6.10...HEAD +[1.6.10]: https://github.com/anatawa12/AvatarOptimizer/compare/v1.6.9...v1.6.10 [1.6.9]: https://github.com/anatawa12/AvatarOptimizer/compare/v1.6.8...v1.6.9 [1.6.8]: https://github.com/anatawa12/AvatarOptimizer/compare/v1.6.7...v1.6.8 [1.6.7]: https://github.com/anatawa12/AvatarOptimizer/compare/v1.6.6...v1.6.7 diff --git a/package.json b/package.json index 5efdc69a9..b8e4da0ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.anatawa12.avatar-optimizer", - "version": "1.6.10-beta.0", + "version": "1.6.10", "private": false, "unity": "2019.4", "description": "Set of Anatawa12's Small Avatar Optimization Utilities",