Former-commit-id: 99d0f78e267acaef0b455cd724cefc8b343ab560
@@ -412,6 +412,7 @@ inline bool igl::embree::EmbreeIntersector::intersectBeam(
if((intersectRay(origin,direction,hit,tnear,tfar,mask) && (hit.gid == geoId || geoId == -1)))
{
bestHit = hit;
+ hasHit = true;
}
// sample points around actual ray (conservative hitcheck)