Bug 426845 - Creating a transparency mask from a selection causes move tool to move only main layer without transparency mask
Summary: Creating a transparency mask from a selection causes move tool to move only m...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Filter Layers (show other bugs)
Version: 4.3.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-22 00:50 UTC by firefly6677
Modified: 2020-09-22 21:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description firefly6677 2020-09-22 00:50:54 UTC
SUMMARY

If a transparency mask is simply created and then brush strokes are made on the mask, when the move tool is used on the primary layer, both that layer and the mask move together. However, if a selection tool (outline, rectangular) is used on the primary layer, and then the user selects to create a transparency mask, attempting to move the primary layer using the move tool only moves the primary layer and not the transparency mask. 

STEPS TO REPRODUCE
1. Have basic image/paint layer.
2. Use selection tool on layer.
3. Create transparency mask (that is then filled in based on selection)
4. Select primary layer and attempt to move via move tool.

OBSERVED RESULT
Only primary layer moves - resulting in the mask staying in the same place.

EXPECTED RESULT
Both primary layer and mask should move together - just as if the mask was created via another means other than selection.


SOFTWARE/OS VERSIONS
Windows: 10
KDE Frameworks Version: LGPLv2.1+
Qt Version: GPLv2 + GPLv3 + LGPLv2.1 + LGPLv3

ADDITIONAL INFORMATION
If a brush stroke is made within the transparency mask (regardless of if it "changes" anything - i.e. making a small white brush stroke in the midst of the solid white area), then the move tool will work as expected. 

Videos exampling the issue:
https://i.gyazo.com/21e5cd614ff657a96a0a2a20b5f08d11.mp4
https://i.gyazo.com/4fd0000a169a129498f608f6e0159fbd.mp4
https://i.gyazo.com/d51fbf4e10b8c78dbf27ac3a7f7e93fa.mp4

Description of videos, copied from Krita's discord:

The first video is me creating a transparency mask for a layer, filling it black, and then the video shows me painting in it, selecting the paint layer, and then moving it and it, well, moves. 

The second video shows me using a select tool, creating a transparency layer which automatically (yay!) fills in based on the selection. But then if I try to move that paint layer, it only moves the paint layer, not the mask. 

The third video is then taking that same layer, making a brush stroke within the transparency mask, and then again attempting to move the main layer - successfully now that a brush stroke has been made. 

tiar, from the krita-help Discord channel, directed me here to go ahead and submit this as a bug report.
Comment 1 Ahab Greybeard 2020-09-22 15:18:05 UTC
I see this happening in the 4.3.0 appimage but it only happens if you use a vector selection.

I don't see it happen in the Stable/Plus appimage.

Can you try the Stable/Plus Windows build to see if it happens in that? :
https://binary-factory.kde.org/job/Krita_Stable_Windows_Build/
Comment 2 firefly6677 2020-09-22 20:46:27 UTC
That's accurate! Using the 4.4.0 build seems to prevent the issue from occurring, and has things working as expected!
Comment 3 Tiar 2020-09-22 21:06:01 UTC
Let's mark is as fixed then :)