Restore ability to extend line at beginning or end

This commit is contained in:
Bryan Housel
2017-12-22 15:08:05 -05:00
parent fc680545ad
commit 64a11f4cbf
+2 -2
View File
@@ -131,7 +131,7 @@ export function behaviorDrawWay(context, wayId, index, mode, startGraph) {
return function(graph) {
return graph
.replace(end)
.replace(origWay.addNode(end.id));
.replace(origWay.addNode(end.id, index));
};
}
@@ -139,7 +139,7 @@ export function behaviorDrawWay(context, wayId, index, mode, startGraph) {
function _actionReplaceDrawNode(newNode) {
return function(graph) {
return graph
.replace(origWay.addNode(newNode.id))
.replace(origWay.addNode(newNode.id, index))
.remove(end);
};
}