fix: Migrate to Vrm1, set missing specVersion and licenseUrl

This commit is contained in:
0b5vr
2022-09-09 12:14:35 +09:00
parent e73840aec1
commit 7c99c16634
3 changed files with 6 additions and 1 deletions

View File

@@ -63,7 +63,10 @@ namespace UniVRM10
{
// vrm
var vrm1 = new UniGLTF.Extensions.VRMC_vrm.VRMC_vrm();
var vrm1 = new UniGLTF.Extensions.VRMC_vrm.VRMC_vrm
{
SpecVersion = Vrm10Exporter.VRM_SPEC_VERSION
};
// meta (required)
vrm1.Meta = MigrationVrmMeta.Migrate(gltf, vrm0["meta"]);

View File

@@ -32,6 +32,7 @@ namespace UniVRM10
{
var meta = new UniGLTF.Extensions.VRMC_vrm.Meta
{
LicenseUrl = Vrm10Exporter.LICENSE_URL_JA,
AllowPoliticalOrReligiousUsage = false,
AllowExcessivelySexualUsage = false,
AllowExcessivelyViolentUsage = false,

View File

@@ -184,6 +184,7 @@ namespace UniVRM10
{
var springBone = new VRMC_springBone
{
SpecVersion = Vrm10Exporter.SPRINGBONE_SPEC_VERSION,
Colliders = new List<Collider>(),
ColliderGroups = new List<ColliderGroup>(),
Springs = new List<Spring>(),