Selaa lähdekoodia

bug fix from https://github.com/libigl/libigl/pull/477/commits/6c45eb0ca1f1f9581bb6bf6d437d6a08c4c1373c [formerly cbf3c982d84cb466c828bd0d3a91379cf0d8f438]

Former-commit-id: 99d0f78e267acaef0b455cd724cefc8b343ab560
Alec Jacobson 7 vuotta sitten
vanhempi
commit
4aa52c43d7
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      include/igl/embree/EmbreeIntersector.h

+ 1 - 0
include/igl/embree/EmbreeIntersector.h

@@ -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)