mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-01 20:25:07 +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();
|
||||||
@ -256,11 +259,11 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
static bool ValidateSetupOutfit()
|
static bool ValidateSetupOutfit()
|
||||||
{
|
{
|
||||||
errorHeader = S("setup_outfit.err.header.notarget");
|
errorHeader = S("setup_outfit.err.header.notarget");
|
||||||
errorMessageGroups = new string[] {S("setup_outfit.err.unknown")};
|
errorMessageGroups = new string[] { S("setup_outfit.err.unknown") };
|
||||||
|
|
||||||
if (Selection.objects.Length == 0)
|
if (Selection.objects.Length == 0)
|
||||||
{
|
{
|
||||||
errorMessageGroups = new string[] {S("setup_outfit.err.no_selection")};
|
errorMessageGroups = new string[] { S("setup_outfit.err.no_selection") };
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -284,7 +287,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
if (nearestAvatarTransform == null || nearestAvatarTransform == xform)
|
if (nearestAvatarTransform == null || nearestAvatarTransform == xform)
|
||||||
{
|
{
|
||||||
errorMessageGroups = new string[]
|
errorMessageGroups = new string[]
|
||||||
{S_f("setup_outfit.err.multiple_avatar_descriptors", xform.gameObject.name)};
|
{ S_f("setup_outfit.err.multiple_avatar_descriptors", xform.gameObject.name) };
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -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…
Reference in New Issue
Block a user