mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-25 12:05:08 -05:00
Authors
This commit is contained in:
@@ -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) =>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user