Browse Source

Unaligned vector line tool

flabbet 8 months ago
parent
commit
95ba59b075

+ 1 - 0
src/PixiEditor/Models/DocumentModels/UpdateableChangeExecutors/LineExecutor.cs

@@ -19,6 +19,7 @@ internal abstract class LineExecutor<T> : SimpleShapeToolExecutor where T : ILin
 
     protected Color StrokeColor => toolbar!.StrokeColor.ToColor();
     protected int StrokeWidth => toolViewModel!.ToolSize;
+    
     protected bool drawOnMask;
 
     protected VecD curPos;

+ 2 - 0
src/PixiEditor/Models/DocumentModels/UpdateableChangeExecutors/VectorLineToolExecutor.cs

@@ -13,6 +13,8 @@ internal class VectorLineToolExecutor : LineExecutor<IVectorLineToolHandler>
     private VecD startPoint;
     private VecD endPoint;
 
+    protected override bool AlignToPixels => false;
+
     protected override bool InitShapeData(IReadOnlyLineData? data)
     {
         if (data is null)