Merge pull request #10377 from RandomShaper/fix-nav-double-point-2.1
Fix double point in Navigation2D (2.1)
This commit is contained in:
commit
1f0385cc28
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user