mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
more compiler compliant cleanups plus a full set of tsMesh::foo to tsmesh::mFoo class var conversions for consistency
This commit is contained in:
parent
b55db9a143
commit
4615bd6db8
13 changed files with 293 additions and 293 deletions
|
|
@ -86,10 +86,10 @@ S32 TSSortedMesh::getNumPolys()
|
|||
Cluster & cluster = clusters[cIdx];
|
||||
for (S32 i=cluster.startPrimitive; i<cluster.endPrimitive; i++)
|
||||
{
|
||||
if (primitives[i].matIndex & TSDrawPrimitive::Triangles)
|
||||
count += primitives[i].numElements / 3;
|
||||
if (mPrimitives[i].matIndex & TSDrawPrimitive::Triangles)
|
||||
count += mPrimitives[i].numElements / 3;
|
||||
else
|
||||
count += primitives[i].numElements - 2;
|
||||
count += mPrimitives[i].numElements - 2;
|
||||
}
|
||||
cIdx = cluster.frontCluster; // always use frontCluster...we assume about the same no matter what
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue