Showing the changes to libraries/render-utils/src/Model.cpp (1 of 1 file). Show all
Unified · Split
| @@ -558,7 +558,7 @@ bool Model::findRayIntersectionAgainstSubMeshes(const glm::vec3& origin, const g · 557 unmodified lines | |||
| 558 | if (subMeshBox.findRayIntersection(origin, direction, distanceToSubMesh, subMeshFace)) { | 558 | if (subMeshBox.findRayIntersection(origin, direction, distanceToSubMesh, subMeshFace)) { |
| 559 | if (distanceToSubMesh < bestDistance) { | 559 | if (distanceToSubMesh < bestDistance) { |
| 560 | if (pickAgainstTriangles) { | 560 | if (pickAgainstTriangles) { |
| 561 | if (!_calculatedMeshTrianglesValid) { | 561 | if (!_calculatedMeshTrianglesValid) { |
| 562 | recalculateMeshBoxes(pickAgainstTriangles); | 562 | recalculateMeshBoxes(pickAgainstTriangles); |
| 563 | } | 563 | } |
| 564 | // check our triangles here.... | 564 | // check our triangles here.... |