Fix Index adjustment at the beginning of the ring

This commit is contained in:
Andreas Hocevar
2020-09-05 16:21:01 +02:00
committed by GitHub
parent f2b790adf1
commit a9e51d85ec

View File

@@ -77,7 +77,7 @@ function findUniqueVertex(
i += direction * stride;
if (i >= end) {
i = offset;
} else if (i <= offset) {
} else if (i < offset) {
i = end - stride;
}
x = flatCoordinates[i];