mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fix edge-case with version 24 shapes
This commit is contained in:
parent
12019173af
commit
18031f09b1
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue