mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
merge internal way nodes too
This commit is contained in:
@@ -47,11 +47,10 @@ export function actionMergeWayNodes (ids) {
|
||||
|
||||
action.disabled = function (graph) {
|
||||
function isNotWayNode (entity) { return entity.type !== 'node' || graph.parentWays(entity) <= 0; }
|
||||
function isNotExtremeNode (node) { return !node.isEndpoint(graph); }
|
||||
|
||||
var entities = getSelectedEntities(graph);
|
||||
|
||||
if (entities.some(isNotWayNode) || entities.some(isNotExtremeNode)) {
|
||||
if (entities.some(isNotWayNode)) {
|
||||
return 'not_eligible';
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user