Colorsのnull考慮漏れを修正

This commit is contained in:
notargs
2021-11-25 16:11:08 +09:00
parent fbe12e9fb4
commit e9c1e13436

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,