Merge pull request #5950 from jguthrie100/fix_area_with_one_node

Fix pressing Escape with only one active node in area
This commit is contained in:
Quincy Morgan
2019-02-24 10:05:40 -05:00
committed by GitHub

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 {