mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-25 20:16:05 -05:00
fix: Migrate to Vrm1, set missing specVersion and licenseUrl
This commit is contained in:
@@ -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"]);
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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>(),
|
||||
|
||||
Reference in New Issue
Block a user