[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:
to this:
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!
Associate James Ford
Sickhead Games