mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-11 13:04:17 -05:00
Merge pull request #1524 from ousttrue/fix/glb_editorimport_dispose
Dispose 忘れ
This commit is contained in:
commit
2fc166273e
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user