稀に BlendShape が null の時がある

This commit is contained in:
ousttrue 2022-02-24 19:16:28 +09:00
parent 3c873cdbaa
commit 3756f2a4b0

View File

@ -42,14 +42,28 @@ namespace UniGLTF
{
Positions = new List<Vector3>(vertexCount);
}
else
{
Positions = new List<Vector3>();
}
if (hasNormals)
{
Normals = new List<Vector3>(vertexCount);
}
else
{
Normals = new List<Vector3>();
}
if (hasTangents)
{
Tangents = new List<Vector3>(vertexCount);
}
else
{
Tangents = new List<Vector3>();
}
}
public List<Vector3> Positions { get; private set; }