ok, this should update the toolbox without incurring the tag panel time penalty
authorRichard Fairhurst <richard@systemed.net>
Fri, 28 Jan 2011 13:12:23 +0000 (13:12 +0000)
committerRichard Fairhurst <richard@systemed.net>
Fri, 28 Jan 2011 13:12:23 +0000 (13:12 +0000)
net/systemeD/potlatch2/EditController.as
net/systemeD/potlatch2/controller/DrawWay.as

index fd4bec0f5720f5f127e4537391c70c8a8b1f9e93..32cbc4c6afab08d3a31580fa09fd0d1eb845ff11 100644 (file)
@@ -86,6 +86,10 @@ package net.systemeD.potlatch2 {
                        tagViewer.setEntity(state.selection, layer);
                        toolbox.updateSelectionUI();
                }
                        tagViewer.setEntity(state.selection, layer);
                        toolbox.updateSelectionUI();
                }
+
+               public function updateSelectionUIWithoutTagChange():void {
+                       toolbox.updateSelectionUI();
+               }
         
         private function keyDownHandler(event:KeyboardEvent):void {
                        keys[event.keyCode]=true;
         
         private function keyDownHandler(event:KeyboardEvent):void {
                        keys[event.keyCode]=true;
index 5152161113744d7885c04367df6a9d856c6a080d..dcf63d8b2a7b1bd66354e15087ad0a76bd216f9b 100644 (file)
@@ -48,6 +48,7 @@ package net.systemeD.potlatch2.controller {
                     controller.map.setPurgable([node], false);
                                        resetElastic(node);
                                        lastClick=node;
                     controller.map.setPurgable([node], false);
                                        resetElastic(node);
                                        lastClick=node;
+                                       controller.updateSelectionUIWithoutTagChange();
                                } else if ( entity is Node ) {
                                        if (entity==lastClick && (new Date().getTime()-lastClickTime.getTime())<1000) {
                                                if (Way(firstSelected).length==1 && Way(firstSelected).getNode(0).parentWays.length==1) {
                                } else if ( entity is Node ) {
                                        if (entity==lastClick && (new Date().getTime()-lastClickTime.getTime())<1000) {
                                                if (Way(firstSelected).length==1 && Way(firstSelected).getNode(0).parentWays.length==1) {