Skip to content

Commit

Permalink
v0.2.1
Browse files Browse the repository at this point in the history
- fixed null pointer
- added header to evaluator
- added self promotion
  • Loading branch information
Thryrallo committed Jun 26, 2022
1 parent e7de7b4 commit 72b5b57
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion AvatarEvaluator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ void InitGUI()

private void OnGUI()
{
EditorGUILayout.Space();
EditorGUILayout.LabelField("<size=20><color=magenta>Thry's Avatar Avatar Evaluator</color></size> v0.2.1", new GUIStyle(EditorStyles.label) { richText = true, alignment = TextAnchor.MiddleCenter });
if (GUILayout.Button("Click here & follow me on twitter", EditorStyles.centeredGreyMiniLabel))
Application.OpenURL("https://twitter.com/thryrallo");
EditorGUILayout.Space();

if (!isGUIInit) InitGUI();
EditorGUI.BeginChangeCheck();
scrollPosition = EditorGUILayout.BeginScrollView(scrollPosition);
Expand Down Expand Up @@ -256,7 +262,7 @@ void Evaluate()
else _writeDefaultoutliers = wdOn.Select(s => s.Item2).ToArray();
#endif

skinendMeshesWithBlendshapes = avatar.GetComponentsInChildren<SkinnedMeshRenderer>(true).Where(r => r.sharedMesh.blendShapeCount > 0).Select(r => (r, r.sharedMesh.triangles.Length / 3)).OrderByDescending(i => i.Item2).ToArray();
skinendMeshesWithBlendshapes = avatar.GetComponentsInChildren<SkinnedMeshRenderer>(true).Where(r => r.sharedMesh != null && r.sharedMesh.blendShapeCount > 0).Select(r => (r, r.sharedMesh.triangles.Length / 3)).OrderByDescending(i => i.Item2).ToArray();
}

public static IEnumerable<Material>[] GetMaterials(GameObject avatar)
Expand Down

0 comments on commit 72b5b57

Please sign in to comment.