瀏覽代碼

error coused breakpoints only to trigger after two steps

Kolja Strohm 6 年之前
父節點
當前提交
57f6a4f505
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. 6 0
      src/animation/AnimationController.java
  2. 1 0
      src/bk/BKNodePlacement.java

+ 6 - 0
src/animation/AnimationController.java

@@ -59,6 +59,12 @@ public class AnimationController {
      */
      */
     public void setContinuous( boolean c )
     public void setContinuous( boolean c )
     {
     {
+        if( !c && continuous )
+        {
+            synchronized( this ) {
+                next = null;
+            }
+        }
         this.continuous = c;
         this.continuous = c;
     }
     }
 
 

+ 1 - 0
src/bk/BKNodePlacement.java

@@ -333,6 +333,7 @@ public class BKNodePlacement extends AnimatedAlgorithm {
                     {
                     {
                     case FINISHED:
                     case FINISHED:
                         inside = false;
                         inside = false;
+                        conflictsNode.setSelected( false );
                         return StageStatus.FINISHED;
                         return StageStatus.FINISHED;
                     case BREAKPOINT:
                     case BREAKPOINT:
                         inside = true;
                         inside = true;