浏览代码

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

Rene Brokholm 4 年之前
父节点
当前提交
60158562de
共有 1 个文件被更改,包括 2 次插入2 次删除
  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;
 
             bool shiftDown = Keyboard.IsKeyDown(Key.LeftShift);
-
-            if (shiftDown)
+            var isShapeTool = tool is ShapeTool;
+            if (shiftDown && !isShapeTool)
             {
                 bool mouseInLine = MouseCordsNotInLine(mouseMoveCords, thickness);