Skip to content
GitLab
Menu
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
eef2caf3
Commit
eef2caf3
authored
May 04, 2019
by
Halla Rempt
Browse files
Convert the brushtip image to grayscale if it's a mask
CCBUG:405693
parent
81407392
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs/brush/kis_png_brush.cpp
View file @
eef2caf3
...
...
@@ -103,14 +103,15 @@ bool KisPngBrush::loadFromDevice(QIODevice *dev)
return
false
;
}
setBrushTipImage
(
image
);
setValid
(
true
);
if
(
brushTipImage
().
allGray
())
{
setBrushTipImage
(
image
.
convertToFormat
(
QImage
::
Format_Grayscale8
));
setBrushType
(
MASK
);
setHasColor
(
false
);
}
else
{
setBrushTipImage
(
image
);
setBrushType
(
IMAGE
);
setHasColor
(
true
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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