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

Fix double point in Navigation2D
This commit is contained in:
Rémi Verschelde 2017-08-16 17:08:06 +02:00 committed by GitHub
commit a8ceb54abf

View file

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