mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-27 21:18:00 -05:00
Authors
This commit is contained in:
parent
b81e9915c0
commit
114ee76bdf
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user