From a2f804206652512598da5ee304f625b5f5058318 Mon Sep 17 00:00:00 2001 From: yutopp Date: Thu, 14 Feb 2019 20:00:28 +0900 Subject: [PATCH] Set a default values to meta fields --- Assets/VRM/UniVRM/Scripts/Format/glTF_VRM_Meta.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/VRM/UniVRM/Scripts/Format/glTF_VRM_Meta.cs b/Assets/VRM/UniVRM/Scripts/Format/glTF_VRM_Meta.cs index ceceead64..c88c22dc0 100644 --- a/Assets/VRM/UniVRM/Scripts/Format/glTF_VRM_Meta.cs +++ b/Assets/VRM/UniVRM/Scripts/Format/glTF_VRM_Meta.cs @@ -64,7 +64,7 @@ namespace VRM "ExplicitlyLicensedPerson", "Everyone", }, EnumSerializationType = EnumSerializationType.AsString)] - public string allowedUserName; + public string allowedUserName = "OnlyAuthor"; public AllowedUser allowedUser { get @@ -82,7 +82,7 @@ namespace VRM "Disallow", "Allow", }, EnumSerializationType = EnumSerializationType.AsString)] - public string violentUssageName; + public string violentUssageName = "Disallow"; public UssageLicense violentUssage { get { return FromString(violentUssageName); } @@ -94,7 +94,7 @@ namespace VRM "Disallow", "Allow", }, EnumSerializationType = EnumSerializationType.AsString)] - public string sexualUssageName; + public string sexualUssageName = "Disallow"; public UssageLicense sexualUssage { get { return FromString(sexualUssageName); } @@ -106,7 +106,7 @@ namespace VRM "Disallow", "Allow", }, EnumSerializationType = EnumSerializationType.AsString)] - public string commercialUssageName; + public string commercialUssageName = "Disallow"; public UssageLicense commercialUssage { get { return FromString(commercialUssageName); } @@ -130,7 +130,7 @@ namespace VRM "CC_BY_NC_ND", "Other" }, EnumSerializationType = EnumSerializationType.AsString)] - public string licenseName; + public string licenseName = "Redistribution_Prohibited"; public LicenseType licenseType { get