This commit is contained in:
ousttrue 2021-01-18 15:20:27 +09:00
parent b81e9915c0
commit 114ee76bdf
2 changed files with 8 additions and 5 deletions

View File

@ -68,6 +68,7 @@ namespace UniVRM10
Selection.selectionChanged += Repaint;
m_tmpMeta = ScriptableObject.CreateInstance<VRM10MetaObject>();
m_tmpMeta.Authors = new string[] { "" };
m_state = new MeshUtility.ExporterDialogState();
m_state.ExportRootChanged += (root) =>

View File

@ -79,14 +79,16 @@ namespace UniVRM10
{
yield return Validation.Error("Require Name. ");
}
// if (string.IsNullOrEmpty(Version))
// {
// yield return Validation.Error("Require Version. ");
// }
if (Authors == null || Authors.Length == 0 || Authors.All(x => string.IsNullOrEmpty(x)))
if (Authors == null || Authors.Length == 0)
{
yield return Validation.Error("Require at leaset one Author.");
}
if (Authors.All(x => string.IsNullOrWhiteSpace(x)))
{
yield return Validation.Error("All Authors is whitespace");
}
}
public void CopyTo(VRM10MetaObject dst)