Merge pull request #1394 from notargs/feature/fix_nullre

Colorsのnull考慮漏れを修正
This commit is contained in:
ousttrue
2021-11-25 16:13:22 +09:00
committed by GitHub

View File

@@ -142,7 +142,7 @@ namespace UniGLTF
var joints = jointsGetter?.Invoke(i) ?? (0, 0, 0, 0);
var weights = weightsGetter != null ? NormalizeBoneWeight(weightsGetter(i)) : (0, 0, 0, 0);
var color = colors[i];
var color = colors != null ? colors[i] : Color.black;
_vertices.Add(
new MeshVertex(
position,