From 82338fa9f40828f0e31bb0793d29047ded29849c Mon Sep 17 00:00:00 2001 From: OTHGMars Date: Fri, 8 Jun 2018 20:32:38 -0400 Subject: [PATCH] Changes TSStatic::castRayRendered to used passed texcoord argument. This fixes a bug where TSStatic::castRayRendered() ignored the state of generateTexCoord in the passed RayInfo structure and never returned texture coordinates if requested. --- Engine/source/T3D/tsStatic.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Engine/source/T3D/tsStatic.cpp b/Engine/source/T3D/tsStatic.cpp index 7797795a5..58925b29e 100644 --- a/Engine/source/T3D/tsStatic.cpp +++ b/Engine/source/T3D/tsStatic.cpp @@ -1007,6 +1007,8 @@ bool TSStatic::castRayRendered(const Point3F &start, const Point3F &end, RayInfo // Cast the ray against the currently visible detail RayInfo localInfo; + if (info && info->generateTexCoord) + localInfo.generateTexCoord = true; bool res = mShapeInstance->castRayOpcode( mShapeInstance->getCurrentDetail(), start, end, &localInfo ); if ( res )