mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
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.
This commit is contained in:
parent
ee9f3b74ec
commit
82338fa9f4
1 changed files with 2 additions and 0 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue