diff --git a/ApplicationCode/ModelVisualization/Intersections/RivIntersectionGeometryGenerator.cpp b/ApplicationCode/ModelVisualization/Intersections/RivIntersectionGeometryGenerator.cpp index b1ed7216d2..0e117e2a77 100644 --- a/ApplicationCode/ModelVisualization/Intersections/RivIntersectionGeometryGenerator.cpp +++ b/ApplicationCode/ModelVisualization/Intersections/RivIntersectionGeometryGenerator.cpp @@ -205,6 +205,8 @@ void RivIntersectionGeometryGenerator::calculateArrays() { if (m_triangleVxes->size()) return; + if (m_hexGrid.isNull()) return; + m_extrusionDirection.normalize(); std::vector triangleVertices;