Browse Source

Null check

Krzysztof Krysiński 4 months ago
parent
commit
d2d231ba45
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/PixiEditor/Views/Overlays/PathOverlay/VectorPathOverlay.cs

+ 1 - 1
src/PixiEditor/Views/Overlays/PathOverlay/VectorPathOverlay.cs

@@ -409,7 +409,7 @@ public class VectorPathOverlay : Overlay
             anchor.OnRelease += OnHandleRelease;
             anchor.OnRelease += OnHandleRelease;
             anchor.OnTap += OnHandleTap;
             anchor.OnTap += OnHandleTap;
             AddHandle(anchor);
             AddHandle(anchor);
-            SnappingController.AddXYAxis($"editingPath[{atIndex}]", () =>
+            SnappingController?.AddXYAxis($"editingPath[{atIndex}]", () =>
             {
             {
                 var subs = editableVectorPath.GetSubShapeContainingIndex(atIndex);
                 var subs = editableVectorPath.GetSubShapeContainingIndex(atIndex);
                 int localIndex = editableVectorPath.GetSubShapePointIndex(atIndex, subs);
                 int localIndex = editableVectorPath.GetSubShapePointIndex(atIndex, subs);