Remove the VRM 1.0 importer option about the normalization of node transforms.

This commit is contained in:
Masataka SUMI
2022-09-07 14:19:04 +09:00
parent 20be242bfa
commit f8fe9daa1e
8 changed files with 99 additions and 359 deletions

View File

@@ -29,7 +29,7 @@ namespace UniVRM10
}
}
static void Process(Vrm10Data result, ScriptedImporter scriptedImporter, AssetImportContext context, RenderPipelineTypes renderPipeline, bool doNormalize)
static void Process(Vrm10Data result, ScriptedImporter scriptedImporter, AssetImportContext context, RenderPipelineTypes renderPipeline)
{
//
// Import(create unity objects)
@@ -40,9 +40,7 @@ namespace UniVRM10
var materialGenerator = GetMaterialDescriptorGenerator(renderPipeline);
using (var loader = new Vrm10Importer(result, extractedObjects,
materialGenerator: materialGenerator,
doNormalize: doNormalize))
using (var loader = new Vrm10Importer(result, extractedObjects, materialGenerator: materialGenerator))
{
// settings TextureImporters
foreach (var textureInfo in loader.TextureDescriptorGenerator.Get().GetEnumerable())
@@ -73,7 +71,7 @@ namespace UniVRM10
/// <param name="doMigrate">vrm0 だった場合に vrm1 化する</param>
/// <param name="renderPipeline"></param>
/// <param name="doNormalize">normalize する</param>
public static void Import(ScriptedImporter scriptedImporter, AssetImportContext context, bool doMigrate, RenderPipelineTypes renderPipeline, bool doNormalize)
public static void Import(ScriptedImporter scriptedImporter, AssetImportContext context, bool doMigrate, RenderPipelineTypes renderPipeline)
{
#if VRM_DEVELOP
Debug.Log("OnImportAsset to " + scriptedImporter.assetPath);
@@ -86,7 +84,7 @@ namespace UniVRM10
if (vrm1Data != null)
{
// successfully parsed vrm-1.0
Process(vrm1Data, scriptedImporter, context, renderPipeline, doNormalize);
Process(vrm1Data, scriptedImporter, context, renderPipeline);
}
if (!doMigrate)
@@ -100,7 +98,7 @@ namespace UniVRM10
{
if (vrm1Data != null)
{
Process(vrm1Data, scriptedImporter, context, renderPipeline, doNormalize);
Process(vrm1Data, scriptedImporter, context, renderPipeline);
}
}