Bug 408963 - a global selection mask can be part of the layer stack, without a selection being active
Summary: a global selection mask can be part of the layer stack, without a selection b...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Brush Engine/Bristle (other bugs)
Version First Reported In: 4.2.1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2019-06-20 18:19 UTC by aaron.thompson1889
Modified: 2020-05-04 13:05 UTC (History)
1 user (show)

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


Attachments
Original Krita File (1.64 MB, application/x-krita)
2019-06-20 18:19 UTC, aaron.thompson1889
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aaron.thompson1889 2019-06-20 18:19:57 UTC
Created attachment 121040 [details]
Original Krita File

SUMMARY

I have been working on a painting for about 2 - 4 hours as of now. I have been sketching on a lower layer, followed by doing lines as I go when I am finished with a part. For some reason now, I can not use any brush tool anymore. I can use the vector brushes, but any normal brush that I use (like the sketching pencil or the marker), it no longer allows me to draw. I can open a new image and it works, however it doesn't on the original piece. Nothing is clicked for the layer (ie its not locked anywhere), and I don't know what to do (if it helps I did try the things I could find on google for about an hour, but everything (even a complete computer restart) has not fixed it).

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Halla Rempt 2019-06-20 18:24:20 UTC
Are you sure you don't have a very small selection somewhere? Can you share the .kra file so I can see what's up?
Comment 2 aaron.thompson1889 2019-06-20 18:27:08 UTC
https://1drv.ms/u/s!AlrvF_F-Q4HosFpjhrRRHRB8EZ60?e=fpyNia
Comment 3 aaron.thompson1889 2019-06-20 18:27:39 UTC
Yes, I tried the Ctrl+Shift+A shortcut to deselect everything and it still didn't work.
Comment 4 aaron.thompson1889 2019-06-20 20:16:13 UTC
Yes, I tried the Ctrl+Shift+A shortcut to deselect everything and it still didn't work.
Comment 5 Halla Rempt 2019-06-21 06:28:16 UTC
3.3.3 can still paint on the top layer, 4.1.7 and 4.2.0 cannot. There is indeed no selection present.
Comment 6 Halla Rempt 2019-06-21 06:33:00 UTC
But when saving as .psd, I get a message that there's a selection mask active. When enabling select/show global selection mask, it turns up on the layer box and shows that nothing is selected. Deleting this mask makes the image editable again. I'm not sure how the mask came into existence there, though...
Comment 7 Halla Rempt 2019-09-02 07:44:00 UTC
I still cannot figure out how a global selection mask could get stuck half-way the layer stack, but it must be a pretty rare occurrence.
Comment 8 Halla Rempt 2020-05-04 13:05:03 UTC
Git commit 23a48da3c40102198eadf53a5e28e578841a68e5 by Boudewijn Rempt.
Committed on 04/05/2020 at 13:02.
Pushed by rempt into branch 'krita/4.3'.

Don't add selections masks to the projection

Add the first of any selection masks that are children of the projection
to the parent at the end of adding all the other child nodes. Otherwise
it won't be seen as the global selection.

M  +13   -1    plugins/impex/libkra/kis_kra_loader.cpp

https://invent.kde.org/kde/krita/commit/23a48da3c40102198eadf53a5e28e578841a68e5
Comment 9 Halla Rempt 2020-05-04 13:05:06 UTC
Git commit e9f34a0ed01e0a40115407bf786532de9f855074 by Boudewijn Rempt.
Committed on 04/05/2020 at 13:04.
Pushed by rempt into branch 'master'.

Don't add selections masks to the projection

Add the first of any selection masks that are children of the projection
to the parent at the end of adding all the other child nodes. Otherwise
it won't be seen as the global selection.
(cherry picked from commit 23a48da3c40102198eadf53a5e28e578841a68e5)

M  +13   -1    plugins/impex/libkra/kis_kra_loader.cpp

https://invent.kde.org/kde/krita/commit/e9f34a0ed01e0a40115407bf786532de9f855074