Merge pull request #1524 from ousttrue/fix/glb_editorimport_dispose

Dispose 忘れ
This commit is contained in:
ousttrue 2022-02-14 17:25:49 +09:00 committed by GitHub
commit 2fc166273e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,12 +61,6 @@ namespace UniGLTF
Debug.Log("OnImportAsset to " + scriptedImporter.assetPath);
#endif
//
// Parse(parse glb, parser gltf json)
//
var data = new AutoGltfFileParser(scriptedImporter.assetPath).Parse();
//
// Import(create unity objects)
//
@ -78,6 +72,7 @@ namespace UniGLTF
IMaterialDescriptorGenerator materialGenerator = GetMaterialGenerator(renderPipeline);
using (var data = new AutoGltfFileParser(scriptedImporter.assetPath).Parse())
using (var loader = new ImporterContext(data, extractedObjects, materialGenerator: materialGenerator))
{
// Configure TextureImporter to Extracted Textures.