mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Add check for possible missing activeEntity in drag_node
This commit is contained in:
@@ -91,6 +91,7 @@ export function modeDragNode(context) {
|
||||
|
||||
|
||||
function shouldSnapToNode(target) {
|
||||
if (!_activeEntity) return false;
|
||||
return _activeEntity.geometry(context.graph()) !== 'vertex' ||
|
||||
(target.geometry(context.graph()) === 'vertex' || context.presets().allowsVertex(target, context.graph()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user