mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user