Bug 361814 - Hold shift + drag to change brush size to snap to whole numbers
Summary: Hold shift + drag to change brush size to snap to whole numbers
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 3.0 Alpha
Platform: unspecified Other
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-15 14:10 UTC by Tobias Johansson
Modified: 2020-08-17 11:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Johansson 2016-04-15 14:10:39 UTC
I love that you scale a brush by holding down shift and left mouse dragging. However, as I'm now doing pixel art I'm started to feel that I miss one thing with that tool. It would be great if you could change so the brush size snaps to the nearest full number. Like 1px, 2px, 3px and so on. 

At the moment it doesn't snap to any specific size, but it snaps to for example 1.34 and then 2.45 and so on. 

Reproducible: Always

Steps to Reproduce:
1. Hold shift and drag the left mouse to change scale of the brush.
Comment 1 Antti Savolainen 2018-06-27 21:26:22 UTC
This would a nice feature with Shift+ Ctrl or Alt + drag.
Comment 2 Bug Janitor Service 2020-08-16 09:07:51 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/470
Comment 3 Santiago Munoz 2020-08-17 11:08:12 UTC
Git commit 0a8bdbe7169a465e87e6d380cc42fa8e716b0ab5 by Santiago A M Rodriguez.
Committed on 16/08/2020 at 12:24.
Pushed by dkazakov into branch 'master'.

New shortcut: Resize brush in full pixel increments

This introduces a new shortcut to resize the brush like the default
Shift+Left click, but snapping to the closest full pixel.

The default Shift+Left Click now becomes the 'Normal' action under
'Change Primary Setting' of Canvas shortcut, and this addition becomes
the 'Snap' action.

M  +23   -8    libs/ui/input/kis_change_primary_setting_action.cpp
M  +9    -0    libs/ui/input/kis_change_primary_setting_action.h
M  +2    -0    libs/ui/tool/kis_tool.h
M  +11   -7    libs/ui/tool/kis_tool_freehand.cc
M  +1    -1    libs/ui/tool/kis_tool_polyline_base.cpp
M  +3    -3    plugins/tools/basictools/kis_tool_multihand.cpp
M  +8    -5    plugins/tools/tool_transform2/kis_liquify_transform_strategy.cpp

https://invent.kde.org/graphics/krita/commit/0a8bdbe7169a465e87e6d380cc42fa8e716b0ab5
Comment 4 Dmitry Kazakov 2020-08-17 11:10:20 UTC
Git commit a3b47532bbf9be281deae56ca3390373de814b9e by Dmitry Kazakov, on behalf of Santiago A M Rodriguez.
Committed on 17/08/2020 at 11:10.
Pushed by dkazakov into branch 'krita/4.3'.

New shortcut: Resize brush in full pixel increments

This introduces a new shortcut to resize the brush like the default
Shift+Left click, but snapping to the closest full pixel.

The default Shift+Left Click now becomes the 'Normal' action under
'Change Primary Setting' of Canvas shortcut, and this addition becomes
the 'Snap' action.

M  +23   -8    libs/ui/input/kis_change_primary_setting_action.cpp
M  +9    -0    libs/ui/input/kis_change_primary_setting_action.h
M  +2    -0    libs/ui/tool/kis_tool.h
M  +11   -7    libs/ui/tool/kis_tool_freehand.cc
M  +1    -1    libs/ui/tool/kis_tool_polyline_base.cpp
M  +3    -3    plugins/tools/basictools/kis_tool_multihand.cpp
M  +8    -5    plugins/tools/tool_transform2/kis_liquify_transform_strategy.cpp

https://invent.kde.org/graphics/krita/commit/a3b47532bbf9be281deae56ca3390373de814b9e