浏览代码

Fixed selection bug

Krzysztof Krysiński 1 月之前
父节点
当前提交
1a5723407e
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/PixiEditor/Views/Overlays/PathOverlay/VectorPathOverlay.cs

+ 3 - 2
src/PixiEditor/Views/Overlays/PathOverlay/VectorPathOverlay.cs

@@ -148,8 +148,9 @@ public class VectorPathOverlay : Overlay
                 }
 
                 var handle = anchorHandles[anchorIndex];
-                bool nextIsSelected = anchorIndex + 1 < anchorHandles.Count &&
-                                      anchorHandles[anchorIndex + 1].IsSelected;
+                var nextIndex = subPath.GetNextPoint(anchorIndex).Index;
+                bool nextIsSelected = nextIndex < anchorHandles.Count &&
+                                      anchorHandles[nextIndex].IsSelected;
                 bool previousIsSelected = anchorIndex - 1 >= 0 &&
                                           anchorHandles[anchorIndex - 1].IsSelected;
                 bool drawControl1 = handle.IsSelected;