Cleanup. Also made it so LLModel::setVolumeFaceData hopefully wont explode if it's ever utilized by future code.

This commit is contained in:
Shyotl
2011-08-14 03:56:54 -05:00
parent 1c38d016d5
commit 978424ced0
2 changed files with 16 additions and 7 deletions

View File

@@ -1495,13 +1495,13 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
for (S32 i = 0; i < num_vertices; i++)
{
mat_vert.affineTransform(src[i], position);
//Still using getF32ptr() because if the array is strided then theres no guarantee vertices will aligned, which LLVector4a requires.
vertices[i].set(position.getF32ptr());
((LLVector4*)&vertices[i])->mV[3] = index;
//Still using getF32ptr() because if the array is strided then theres no guarantee vertices will aligned, which LLVector4a requires
vertices[i].set(position.getF32ptr()); //This assignment and the one below are oddly sensitive. Suspect something's off around here.
vertices[i].mV[3] = index;
}
for (S32 i = num_vertices; i < mGeomCount; i++)
{
*(LLVector4*)&vertices[i]=*(LLVector4*)&(vertices[num_vertices-1]);
memcpy(vertices[i].mV,vertices[num_vertices-1].mV,sizeof(LLVector4));
}
//mVertexBuffer->setBuffer(0);