Add check for entity geometry type in allowsVertex function (re: #5875)

This commit is contained in:
Quincy Morgan
2019-02-11 09:59:43 -05:00
parent ba44c80076
commit 11dc86ca9b

View File

@@ -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;