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
Alberto Flores
Krita
Commits
8a8bcd96
Commit
8a8bcd96
authored
Oct 11, 2018
by
Halla Rempt
Browse files
Fix creating masks.
parent
c8d30a1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs/ui/kis_node_manager.cpp
View file @
8a8bcd96
...
...
@@ -591,11 +591,11 @@ void KisNodeManager::convertNode(const QString &nodeType)
bool
result
=
false
;
if
(
nodeType
==
"KisSelectionMask"
)
{
result
=
m_d
->
maskManager
.
createSelectionMask
(
activeNode
,
copyFrom
,
true
).
isNull
();
result
=
!
m_d
->
maskManager
.
createSelectionMask
(
activeNode
,
copyFrom
,
true
).
isNull
();
}
else
if
(
nodeType
==
"KisFilterMask"
)
{
result
=
m_d
->
maskManager
.
createFilterMask
(
activeNode
,
copyFrom
,
false
,
true
).
isNull
();
result
=
!
m_d
->
maskManager
.
createFilterMask
(
activeNode
,
copyFrom
,
false
,
true
).
isNull
();
}
else
if
(
nodeType
==
"KisTransparencyMask"
)
{
result
=
m_d
->
maskManager
.
createTransparencyMask
(
activeNode
,
copyFrom
,
true
).
isNull
();
result
=
!
m_d
->
maskManager
.
createTransparencyMask
(
activeNode
,
copyFrom
,
true
).
isNull
();
}
m_d
->
commandsAdapter
.
endMacro
();
...
...
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