Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Krita
Commits
cca625b7
Commit
cca625b7
authored
Sep 09, 2022
by
Tom Tom
Committed by
Dmitry Kazakov
Sep 15, 2022
Browse files
Fix dab inaccuracy of Sharpness brushes when outline preview snapping is disabled
BUG:458361
parent
21bfc645
Pipeline
#232160
canceled with stage
in 24 minutes and 48 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
plugins/paintops/libpaintop/kis_current_outline_fetcher.cpp
View file @
cca625b7
...
...
@@ -150,7 +150,7 @@ KisOptimizedBrushOutline KisCurrentOutlineFetcher::fetchOutline(const KisPaintIn
}
QPointF
pos
=
info
.
pos
();
if
(
d
->
sharpnessOption
)
{
if
(
d
->
sharpnessOption
&&
d
->
sharpnessOption
->
alignOutlineToPixels
()
)
{
qint32
x
=
0
;
qint32
y
=
0
;
qreal
subPixelX
=
0.0
;
...
...
plugins/paintops/libpaintop/kis_pressure_sharpness_option.cpp
View file @
cca625b7
...
...
@@ -46,7 +46,12 @@ void KisPressureSharpnessOption::readOptionSetting(const KisPropertiesConfigurat
void
KisPressureSharpnessOption
::
apply
(
const
KisPaintInformation
&
info
,
const
QPointF
&
pt
,
qint32
&
x
,
qint32
&
y
,
qreal
&
xFraction
,
qreal
&
yFraction
)
const
{
if
(
isChecked
()
&&
alignOutlineToPixels
()
&&
KisCurveOption
::
value
()
!=
0.0
)
{
if
(
!
isChecked
()
||
KisCurveOption
::
value
()
==
0.0
)
{
// brush
KisPaintOp
::
splitCoordinate
(
pt
.
x
(),
&
x
,
&
xFraction
);
KisPaintOp
::
splitCoordinate
(
pt
.
y
(),
&
y
,
&
yFraction
);
}
else
{
qreal
processedSharpness
=
computeSizeLikeValue
(
info
);
if
(
processedSharpness
==
1.0
)
{
...
...
@@ -67,10 +72,6 @@ void KisPressureSharpnessOption::apply(const KisPaintInformation &info, const QP
KisPaintOp
::
splitCoordinate
(
xf
,
&
x
,
&
xFraction
);
KisPaintOp
::
splitCoordinate
(
yf
,
&
y
,
&
yFraction
);
}
}
else
{
// brush
KisPaintOp
::
splitCoordinate
(
pt
.
x
(),
&
x
,
&
xFraction
);
KisPaintOp
::
splitCoordinate
(
pt
.
y
(),
&
y
,
&
yFraction
);
}
}
...
...
Tom Tom
@tomtomtom
mentioned in commit
dd48fb72
·
Sep 15, 2022
mentioned in commit
dd48fb72
mentioned in commit dd48fb72fb289519917be6c79247f78a8ff38a46
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment