Skip to content

Commit

Permalink
Automatically add the mesh of RealKissSystem to exclusions internally.
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkc0d3r committed Oct 14, 2024
1 parent b508aee commit 4d266aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* `Keep MMD Blend Shapes` is now `MMD Compatibility` and also prevents the first 3 fx layers to get merged or deleted. [(more)](https://github.com/d4rkc0d3r/d4rkAvatarOptimizer/issues/122)
* Rewrote handling of material property animations with WD ON while using `Shader Toggles`.
* It now tracks which meshes are animated and put those into a mask in the material instead of checking for NaN values.
* Automatically add the mesh of RealKissSystem to exclusions internally.

### Bug Fixes
* Copy the toggle `Normalized Blend Values` of direct blend trees. [(more)](https://github.com/d4rkc0d3r/d4rkAvatarOptimizer/issues/120)
Expand Down
6 changes: 6 additions & 0 deletions Editor/d4rkAvatarOptimizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4862,6 +4862,12 @@ public HashSet<Transform> GetAllExcludedTransforms() {
var hardCodedExclusions = new List<string>() {
"_VirtualLens_Root",
}.Select(s => GetTransformFromPath(s)).ToList();
hardCodedExclusions.AddRange(transform.GetComponentsInChildren<VRCContactSender>(true)
.Where(c => c.collisionTags.Any(t => t == "superneko.realkiss.contact.mouth"))
.Select(c => c.transform.parent)
.Where(t => t != null)
.Select(t => t.Cast<Transform>().FirstOrDefault(child => child.TryGetComponent(out SkinnedMeshRenderer _)))
.Where(t => t != null));
foreach (var excludedTransform in ExcludeTransforms.Concat(hardCodedExclusions)) {
if (excludedTransform == null)
continue;
Expand Down

0 comments on commit 4d266aa

Please sign in to comment.