mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Fix edge-case with version 24 shapes
This commit is contained in:
parent
12019173af
commit
18031f09b1
1 changed files with 12 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue