فهرست منبع

Merge pull request #2259 from OTHGMars/staticraycast

Changes TSStatic::castRayRendered to use passed texcoord argument.
Areloch 7 سال پیش
والد
کامیت
39ebf32cca
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  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
    RayInfo localInfo;
+   if (info && info->generateTexCoord)
+      localInfo.generateTexCoord = true;
    bool res = mShapeInstance->castRayOpcode( mShapeInstance->getCurrentDetail(), start, end, &localInfo );
 
    if ( res )