diff --git a/source/MRMesh/MREdgePaths.cpp b/source/MRMesh/MREdgePaths.cpp index f448d7845770..99d3ca177435 100644 --- a/source/MRMesh/MREdgePaths.cpp +++ b/source/MRMesh/MREdgePaths.cpp @@ -337,6 +337,8 @@ std::vector buildSmallestMetricPathBiDir( { MR_TIMER + if ( start == finish ) + return {}; EdgePathsBuilder bs( topology, metric ); bs.addStart( topology.edgeWithOrg( start ), 0 ); EdgePathsBuilder bf( topology, metric );