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 dcf63d8..61ba7b6 100644 (file)
@@ -302,7 +302,7 @@ package net.systemeD.potlatch2.controller {
                                nextNode = followedWay.getPrevNode(curnode);
                        }
                        if (!nextNode) return;
                                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);
 
                        appendNode(nextNode as Node, MainUndoStack.getGlobalStack().addAction);
                        resetElastic(nextNode as Node);