Game Development Community

[Bug 1.0.1] MeshRoad: Decals Only Appear on 1st Segment (w/ Fix)

by Ryan Mounts · in Torque 3D Professional · 11/05/2009 (5:27 pm) · 2 replies

This is real easy to fix.

In the "MeshRoad::buildSegmentPolyList()" method in "environment/meshRoad.cpp" change this:

// Add verts
   for ( U32 i = startSegIdx; i <= endSegIdx; i++ )
   {
      const MeshRoadSegment &seg = mSegments[startSegIdx];

to this:

// Add verts
   for ( U32 i = startSegIdx; i <= endSegIdx; i++ )
   {
      const MeshRoadSegment &seg = mSegments[i];      // Change index!

#1
11/10/2009 (7:23 pm)
Thanks Ryan, committed this fix to the trunk.
#2
11/10/2009 (7:37 pm)
Ryan is a bug squishing machine!