Browse Source

Merge pull request #1457 from Azaezel/meshRoadMats

hooks meshroads up to the material system for castrays
Areloch 9 năm trước cách đây
mục cha
commit
c2e5eb82af
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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->face = -1;
       info->object = this;
-
+      info->material = this->mMatInst[0];
       return true;
    }