mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-12 13:34:39 -05:00
fix warning
Alpha cutoff is supported only for 'MASK' alpha mode.
This commit is contained in:
parent
e76e2f9671
commit
361954aa9d
|
|
@ -80,7 +80,7 @@ namespace UniGLTF
|
|||
{"gltf/meshes[]/primitives[]/extras", "if(value.extras!=null && value.extras.targetNames!=null && value.extras.targetNames.Count>0)"},
|
||||
{"gltf/meshes[]/weights", "if(value.weights!=null && value.weights.Length>0)" },
|
||||
{"gltf/materials", "if(value.materials!=null && value.materials.Count>0)" },
|
||||
{"gltf/materials[]/alphaCutoff", "if(!string.IsNullOrEmpty(value.alphaMode))" },
|
||||
{"gltf/materials[]/alphaCutoff", "if(value.alphaMode == \"MASK\")" },
|
||||
{"gltf/nodes", "if(value.nodes!=null && value.nodes.Count>0)" },
|
||||
{"gltf/nodes[]/camera", "if(value.camera!=-1)"},
|
||||
{"gltf/nodes[]/mesh", "if(value.mesh!=-1)"},
|
||||
|
|
|
|||
|
|
@ -572,7 +572,7 @@ namespace UniGLTF {
|
|||
f.Key("alphaMode"); f.GenSerialize(value.alphaMode);
|
||||
}
|
||||
|
||||
if(!string.IsNullOrEmpty(value.alphaMode))
|
||||
if(value.alphaMode == "MASK")
|
||||
{
|
||||
f.Key("alphaCutoff"); f.GenSerialize(value.alphaCutoff);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user