Add exception to isInvalidGeometry algorithm

- An area with just 1 placed node (2 nodes including active, to-be-placed node,
    returns as valid and is picked up by later way.isDegenerate() check
This commit is contained in:
J Guthrie
2019-02-24 13:58:16 +00:00
parent 0572f4c72d
commit 249046614c
+2
View File
@@ -125,6 +125,8 @@ export function behaviorDrawWay(context, wayID, index, mode, startGraph, baselin
if (origWay.isClosed()) { // Check if Area
if (finishDraw) {
if (nodes.length < 3) return false;
nodes.splice(-2, 1);
entity = nodes[nodes.length-2];
} else {