Bug 466545 - Krita not saving layer styles and forgetting layer style parameters
Summary: Krita not saving layer styles and forgetting layer style parameters
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: layer styles (show other bugs)
Version: 5.1.5
Platform: Other Microsoft Windows
: NOR major
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-27 17:05 UTC by FrostKiwi
Modified: 2023-04-17 17:13 UTC (History)
1 user (show)

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


Attachments
Affected Krita file from https://github.com/Immediate-Mode-UI/Nuklear/pull/548 (170.05 KB, application/x-krita)
2023-02-27 17:05 UTC, FrostKiwi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FrostKiwi 2023-02-27 17:05:07 UTC
Created attachment 156795 [details]
Affected Krita file from https://github.com/Immediate-Mode-UI/Nuklear/pull/548

For multiple versions now, Krita keeps forgetting certain values of layer styles. Once opened again, certain values just change and certain things don't seem to be able to be saved at all. These include: LayerStyle Stroke and its parameters, LayerStyle DropShadow Opacity, LayerStyle InnerShadow opacity.
This is highly annoying, as I have spent many times re-enabling settings that were previously saved.]

This has been caught in a video tutorial here: https://youtu.be/X1Aui6o_V2A?t=1104 at minute 18:24. In this video section you can see the rectangle having a white stroke. I save the document, close it and reopen it, with the layer style Stroke being forgotten by Krita.
The sample file SkinEditor.kra, where this happens can be found in this Pull Request https://github.com/Immediate-Mode-UI/Nuklear/pull/548 under the section "The Design File". Though the shown issue has been with Stroke, I have also seen this with certain parameters of drop shadows as well.

STEPS TO REPRODUCE
1. Create VectorLayer (don't actually know if this is related to specifically vectors)
2. Set the layer's Layer Style Stroke and change some parameters, also set THings like drop shadows
3. Save the file
4. Reload the file
5. See Krita forgetting those layers styles and sometimes other layer style parameters missing as well

OBSERVED RESULT
As noted above, in video form and in the sample file, parameters are missing. I can provide extra screenshots if needed.

EXPECTED RESULT
The layer style values should not be forgotten.

SOFTWARE/OS VERSIONS
Windows: 11, 22H2
Krita: 5.1.5

ADDITIONAL INFORMATION
Comment 1 Tiar 2023-03-17 17:05:01 UTC
Could you please check Krita Next and see if this issue is resolved? There has been several commits that solved various issues and there is a high chance it's solved now (I solved some of the Stroke parameters being forgotten, and the Opacity strokes were already working because of some older but still recent commits).
Comment 2 Tiar 2023-03-17 17:05:50 UTC
Note: if it's not resolved for some parameters, please do make a list of which parameters exactly are forgotten, it's pretty difficult otherwise, because of how many of them are there.
Comment 3 Tiar 2023-03-17 20:02:20 UTC
Related commits:
a84179a80bc8e74505455d0589d07b4cf4283b47 - Don't forget 'align with layer' in gradient layer style 
e8631c562c511d6b33ea05b93e30000f7ddca852 - Fix color in Bevel and Emboss being forgotten
27aed51669b54356b132d7b6fa18bba90bd94d35 - Fix Bevel and Emboss - Texture Depth not being read from asl 
9c847ba5c8ec912bf3c4d318ed5c654a89400418 - Fix layerstyle creation so they are kept after reload
Comment 4 Bug Janitor Service 2023-04-01 03:45:30 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2023-04-16 03:45:46 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 6 Tiar 2023-04-17 17:13:05 UTC
I believe it is fixed already.