mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-24 06:57:49 -05:00
Ignore null
This commit is contained in:
parent
34e5e4689c
commit
76582ebcf3
|
|
@ -38,6 +38,7 @@ namespace UniGLTF
|
|||
|
||||
// 2 回目以降の Asset Import において、 Importer の設定で Extract した UnityEngine.Object が入る
|
||||
var extractedObjects = scriptedImporter.GetExternalObjectMap()
|
||||
.Where(x => x.Value != null)
|
||||
.ToDictionary(kv => new SubAssetKey(kv.Value.GetType(), kv.Value.name), kv => kv.Value);
|
||||
|
||||
using (var loader = new ImporterContext(parser, extractedObjects))
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ namespace VRM
|
|||
//
|
||||
var map = texturePaths
|
||||
.Select(x => x.LoadAsset<Texture2D>())
|
||||
.Where(x => x != null)
|
||||
.ToDictionary(x => new SubAssetKey(x), x => x as Object);
|
||||
|
||||
using (var context = new VRMImporterContext(parser, map))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user