TWEAK following logic to allow you to follow a loop all the way to the end.
authorSteve Bennett <stevagewp@gmail.com>
Tue, 1 Feb 2011 12:04:27 +0000 (12:04 +0000)
committerSteve Bennett <stevagewp@gmail.com>
Tue, 1 Feb 2011 12:04:27 +0000 (12:04 +0000)
net/systemeD/potlatch2/controller/DrawWay.as

index dcf63d8b2a7b1bd66354e15087ad0a76bd216f9b..61ba7b6913cea3cf0843354c4a283a80bbf51a0b 100644 (file)
@@ -302,7 +302,7 @@ package net.systemeD.potlatch2.controller {
                                nextNode = followedWay.getPrevNode(curnode);
                        }
                        if (!nextNode) return;
-                       if (nextNode.hasParent(firstSelected)) return;
+                       if (nextNode.hasParent(firstSelected) && !(firstSelected as Way).hasOnceOnly(curnode)) return;
 
                        appendNode(nextNode as Node, MainUndoStack.getGlobalStack().addAction);
                        resetElastic(nextNode as Node);