Skip to content

Commit

Permalink
Don't limit movement if this is vertex joins 2 endpoints..
Browse files Browse the repository at this point in the history
(closes #2731)
  • Loading branch information
bhousel committed Jul 25, 2016
1 parent 2450782 commit fd0803f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/actions/move.js
Expand Up @@ -235,6 +235,9 @@ export function Move(moveIds, tryDelta, projection, cache) {
// check if moving way endpoint can cross an unmoved way, if so limit delta..
function limitDelta(graph) {
_.each(cache.intersection, function(obj) {
// Don't limit movement if this is vertex joins 2 endpoints..
if (obj.movedIsEP && obj.unmovedIsEP) return;
// Don't limit movement if this vertex is not an endpoint anyway..
if (!obj.movedIsEP) return;

var node = graph.entity(obj.nodeId),
Expand Down

0 comments on commit fd0803f

Please sign in to comment.