more selection fixes
[potlatch2.git] / net / systemeD / potlatch2 / controller / CreateWay.as
index ccc43bc70ee792e0b968ebbc904b090e6a17d78f..9f239341e75c3b797a7cdbf7a763f85612f335fd 100644 (file)
@@ -4,6 +4,7 @@ package net.systemeD.potlatch2.controller {
     import net.systemeD.potlatch2.EditController;
     import net.systemeD.halcyon.connection.*;
     import net.systemeD.halcyon.Elastic;
+       import net.systemeD.halcyon.Globals;
 
     public class CreateWay extends ControllerState {
         private var start:Point;
@@ -54,11 +55,17 @@ package net.systemeD.potlatch2.controller {
             mouse.y = controller.map.coord2latp(mouse.y);
             
             elastic = new Elastic(controller.map, start, mouse);
+                       Globals.vars.root.addDebug("**** -> "+this);
         }
         
         override public function exitState():void {
             elastic.removeSprites();
             elastic = null;
+                       Globals.vars.root.addDebug("**** <- "+this);
+        }
+
+        override public function toString():String {
+            return "CreateWay";
         }
     }
 }