Skip to content

Commit

Permalink
Fix VRCFury check only checking the root game object and not all chil…
Browse files Browse the repository at this point in the history
…dren. #69
  • Loading branch information
d4rkc0d3r committed Jan 6, 2024
1 parent 572fab5 commit 7a9a0cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* Fix non triangle topology meshes not working when merged.
* Fix `Merge Same Ratio Blend Shapes` not working correctly if some ratios had 0 values in them.
* Fix crash with Skinned Mesh Renderers that have no mesh assigned to them. [(more)](https://github.com/d4rkc0d3r/d4rkAvatarOptimizer/issues/72)
* Fix VRCFury check only checking the root game object and not all children. [(more)](https://github.com/d4rkc0d3r/d4rkAvatarOptimizer/issues/69)

## v3.2.2
### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions Editor/d4rkAvatarOptimizerEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,8 @@ private bool Validate()
"You should expect your poly count to increase, this is working as intended!", MessageType.Info);
}

bool hasVRCFuryComponent = optimizer.GetComponents<Component>().Any(c => c != null && c.GetType().Name == "VRCFury");
if (hasVRCFuryComponent)
var furyType = Type.GetType("VF.Model.VRCFury, VRCFury");
if (furyType != null && optimizer.GetComponentsInChildren(furyType, true).Any())
{
EditorGUILayout.HelpBox(
"VRCFury is used on the avatar. This means the perf rank change and merge result previews can be inaccurate as the optimizer does not take VRCFury into account for those.\n" +
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "d4rkpl4y3r.d4rkavataroptimizer",
"displayName": "d4rkAvatarOptimizer",
"version": "3.3.0-alpha.0",
"version": "3.3.0",
"unity": "2019.4",
"description": "An optimizer aiming to reduce mesh & material count and more of VRChat 3.0 avatars.",
"dependencies": {},
Expand Down

0 comments on commit 7a9a0cf

Please sign in to comment.