mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-07 20:01:33 +00:00
Add check for entity geometry type in allowsVertex function (re: #5875)
This commit is contained in:
@@ -78,6 +78,7 @@ export function presetIndex() {
|
||||
};
|
||||
|
||||
all.allowsVertex = function(entity, resolver) {
|
||||
if (entity.type !== 'node') return false;
|
||||
return resolver.transient(entity, 'vertexMatch', function() {
|
||||
var vertexPresets = _index.vertex;
|
||||
var match;
|
||||
|
||||
Reference in New Issue
Block a user