Allow reselection of next vertex even if vertex has multiple parents

This commit is contained in:
Bryan Housel
2016-12-09 11:57:26 -05:00
parent a55ab036aa
commit 3abf1b5be8

View File

@@ -26,7 +26,7 @@ export function operationDelete(selectedIDs, context) {
annotation = t('operations.delete.annotation.' + geometry);
// Select the next closest node in the way.
if (geometry === 'vertex' && parents.length === 1 && parent.nodes.length > 2) {
if (geometry === 'vertex' && parent.nodes.length > 2) {
var nodes = parent.nodes,
i = nodes.indexOf(id);