mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-20 09:47:56 -05:00
add target null check
This commit is contained in:
parent
bfbf453b82
commit
b7445b35e0
|
|
@ -52,7 +52,7 @@ namespace UniGLTF
|
|||
{"gltf/bufferViews[]/target", "if(value.target!=0)" },
|
||||
{"gltf/animations[]/channels[]/target", "if(value!=null)" },
|
||||
{"gltf/accessors[]/sparse", "if(value.sparse!=null && value.sparse.count>0)"},
|
||||
{"gltf/meshes[]/primitives[]/targets", "if(value.targets.Count>0)" },
|
||||
{"gltf/meshes[]/primitives[]/targets", "if(value.targets!=null && value.targets.Count>0)" },
|
||||
|
||||
{"gltf/meshes[]/primitives[]/targets[]/POSITION", "if(value.POSITION!=-1)" },
|
||||
{"gltf/meshes[]/primitives[]/targets[]/NORMAL", "if(value.NORMAL!=-1)" },
|
||||
|
|
|
|||
|
|
@ -814,7 +814,7 @@ namespace UniGLTF {
|
|||
f.Key("material"); f.GenSerialize(value.material);
|
||||
}
|
||||
|
||||
if(value.targets.Count>0)
|
||||
if(value.targets!=null && value.targets.Count>0)
|
||||
{
|
||||
f.Key("targets"); f.GenSerialize(value.targets);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user