mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-17 19:31:01 +00:00
Merge pull request #879 from eightyeight/issue-825
Increment vertex pointer by 3, not 1
This commit is contained in:
commit
a8f246404a
1 changed files with 1 additions and 1 deletions
|
|
@ -784,7 +784,7 @@ bool TSMesh::castRayRendered( S32 frame, const Point3F & start, const Point3F &
|
|||
// gonna depend on what kind of primitive it is...
|
||||
if ( (draw.matIndex & TSDrawPrimitive::TypeMask) == TSDrawPrimitive::Triangles )
|
||||
{
|
||||
for ( S32 j = 0; j < draw.numElements-2; j++)
|
||||
for ( S32 j = 0; j < draw.numElements-2; j += 3 )
|
||||
{
|
||||
idx0 = indices[drawStart + j + 0];
|
||||
idx1 = indices[drawStart + j + 1];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue