Ver Fonte

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.

OTHGMars há 7 anos atrás
pai
commit
4df6c7fbab
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      Engine/source/T3D/tsStatic.cpp

+ 2 - 0
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
    // Cast the ray against the currently visible detail
    RayInfo localInfo;
    RayInfo localInfo;
+   if (info && info->generateTexCoord)
+      localInfo.generateTexCoord = true;
    bool res = mShapeInstance->castRayOpcode( mShapeInstance->getCurrentDetail(), start, end, &localInfo );
    bool res = mShapeInstance->castRayOpcode( mShapeInstance->getCurrentDetail(), start, end, &localInfo );
 
 
    if ( res )
    if ( res )