瀏覽代碼

Merge pull request #1457 from Azaezel/meshRoadMats

hooks meshroads up to the material system for castrays
Areloch 9 年之前
父節點
當前提交
c2e5eb82af
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/environment/meshRoad.cpp

+ 1 - 1
Engine/source/environment/meshRoad.cpp

@@ -1552,7 +1552,7 @@ bool MeshRoad::castRay( const Point3F &s, const Point3F &e, RayInfo *info )
       info->point.interpolate(start, end, out);
       info->point.interpolate(start, end, out);
       info->face = -1;
       info->face = -1;
       info->object = this;
       info->object = this;
-
+      info->material = this->mMatInst[0];
       return true;
       return true;
    }
    }