Pārlūkot izejas kodu

Fixed vector path overlay

Krzysztof Krysiński 6 mēneši atpakaļ
vecāks
revīzija
f06b64c1a5

+ 0 - 4
src/PixiEditor/Models/DocumentModels/UpdateableChangeExecutors/VectorPathToolExecutor.cs

@@ -89,10 +89,6 @@ internal class VectorPathToolExecutor : UpdateableChangeExecutor, IPathExecutorF
                 {
                     startingPath.MoveTo((VecF)snapped);
                 }
-                else
-                {
-                    startingPath.LineTo((VecF)snapped);
-                }
 
                 if (toolbar.SyncWithPrimaryColor)
                 {

+ 1 - 1
src/PixiEditor/ViewModels/Tools/Tools/VectorPathToolViewModel.cs

@@ -81,7 +81,7 @@ internal class VectorPathToolViewModel : ShapeTool, IVectorPathToolHandler
         var doc =
             ViewModelMain.Current?.DocumentManagerSubViewModel.ActiveDocument;
 
-        if (doc is null || isActivated) return;
+        if (doc is null) return;
 
         if (!doc.PathOverlayViewModel.IsActive)
         {