Browse Source

PenTool: This do so Shift is not functionality is not applyed if it is PenTool

Rene Brokholm 4 years ago
parent
commit
60158562de
1 changed files with 2 additions and 2 deletions
  1. 2 2
      PixiEditor/Models/Controllers/BitmapOperationsUtility.cs

+ 2 - 2
PixiEditor/Models/Controllers/BitmapOperationsUtility.cs

@@ -128,8 +128,8 @@ namespace PixiEditor.Models.Controllers
             int thickness = sizeSetting != null ? sizeSetting.Value : 1;
             int thickness = sizeSetting != null ? sizeSetting.Value : 1;
 
 
             bool shiftDown = Keyboard.IsKeyDown(Key.LeftShift);
             bool shiftDown = Keyboard.IsKeyDown(Key.LeftShift);
-
-            if (shiftDown)
+            var isShapeTool = tool is ShapeTool;
+            if (shiftDown && !isShapeTool)
             {
             {
                 bool mouseInLine = MouseCordsNotInLine(mouseMoveCords, thickness);
                 bool mouseInLine = MouseCordsNotInLine(mouseMoveCords, thickness);