Explorar o código

Updating JS to the TS file

Raanan Weber %!s(int64=10) %!d(string=hai) anos
pai
achega
079d4c4373
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Babylon/Mesh/babylon.subMesh.js

+ 1 - 0
Babylon/Mesh/babylon.subMesh.js

@@ -114,6 +114,7 @@
                 var currentIntersectInfo = ray.intersectsTriangle(p0, p1, p2);
 
                 if (currentIntersectInfo) {
+                    if(currentIntersectInfo.distance < 0 ) continue;
                     if (fastCheck || !intersectInfo || currentIntersectInfo.distance < intersectInfo.distance) {
                         intersectInfo = currentIntersectInfo;
                         intersectInfo.faceId = index / 3;