mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-31 01:09:22 +02:00
Validate connected ways when validating a way to avoid stale connectivity issues (close #6335)
This commit is contained in:
@@ -299,6 +299,12 @@ export function coreValidator(context) {
|
||||
entity.members.forEach(function(member) {
|
||||
acc.add(member.id);
|
||||
});
|
||||
} else if (entity.type === 'way') { // include connected ways
|
||||
entity.nodes.forEach(function(nodeID) {
|
||||
graph._parentWays[nodeID].forEach(function(wayID) {
|
||||
acc.add(wayID);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
checkParentRels.forEach(function(entity) { // include parent relations
|
||||
|
||||
Reference in New Issue
Block a user