Merge pull request #10377 from RandomShaper/fix-nav-double-point-2.1

Fix double point in Navigation2D (2.1)
This commit is contained in:
Rémi Verschelde 2017-08-16 17:08:10 +02:00 committed by GitHub
commit 1f0385cc28

View File

@ -646,7 +646,8 @@ debug path
break; break;
} }
path.push_back(begin_point); if (path[path.size() - 1].distance_to(begin_point) > CMP_EPSILON)
path.push_back(begin_point);
path.invert(); path.invert();
} }