mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-27 21:34:38 -05:00
稀に BlendShape が null の時がある
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user