Fix edge-case with version 24 shapes

This commit is contained in:
James Urquhart 2016-09-01 00:30:29 +01:00
parent 12019173af
commit 18031f09b1

View file

@ -2799,6 +2799,18 @@ void TSSkinMesh::assemble( bool skip )
batchData.initialNorms.set((Point3F*)ptr32, numVerts);
encodedNorms.set(NULL, 0);
}
// Sometimes we'll have a mesh with 0 verts but initialVerts is set,
// so set these accordingly
if (verts.size() == 0)
{
verts = batchData.initialVerts;
}
if (norms.size() == 0)
{
norms = batchData.initialNorms;
}
}
else
{