mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-26 14:29:02 +08:00
parent
a9a0fd648e
commit
4d3f49306e
@ -73,7 +73,10 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
foreach (var message in messageGroups)
|
foreach (var message in messageGroups)
|
||||||
{
|
{
|
||||||
EditorGUILayout.Space(SeparatorSize);
|
EditorGUILayout.Space(SeparatorSize);
|
||||||
EditorGUILayout.LabelField(message);
|
var style = new GUIStyle(EditorStyles.label);
|
||||||
|
style.wordWrap = true;
|
||||||
|
|
||||||
|
EditorGUILayout.LabelField(message, style);
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorGUILayout.BeginHorizontal();
|
EditorGUILayout.BeginHorizontal();
|
||||||
@ -331,7 +334,9 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
avatarHips = avatarAnimator.isHuman ? avatarAnimator.GetBoneTransform(HumanBodyBones.Hips)?.gameObject : null;
|
avatarHips = avatarAnimator.isHuman
|
||||||
|
? avatarAnimator.GetBoneTransform(HumanBodyBones.Hips)?.gameObject
|
||||||
|
: null;
|
||||||
|
|
||||||
if (avatarHips == null)
|
if (avatarHips == null)
|
||||||
{
|
{
|
||||||
@ -345,7 +350,9 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
var outfitAnimator = outfitRoot.GetComponent<Animator>();
|
var outfitAnimator = outfitRoot.GetComponent<Animator>();
|
||||||
if (outfitAnimator != null)
|
if (outfitAnimator != null)
|
||||||
{
|
{
|
||||||
outfitHips = outfitAnimator.isHuman ? outfitAnimator.GetBoneTransform(HumanBodyBones.Hips)?.gameObject : null;
|
outfitHips = outfitAnimator.isHuman
|
||||||
|
? outfitAnimator.GetBoneTransform(HumanBodyBones.Hips)?.gameObject
|
||||||
|
: null;
|
||||||
}
|
}
|
||||||
|
|
||||||
var hipsCandidates = new List<string>();
|
var hipsCandidates = new List<string>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user