Bug 464041 - The settings of the same style preset after the file is reopened will be overwritten by the settings of the top-level style preset
Summary: The settings of the same style preset after the file is reopened will be over...
Status: RESOLVED DUPLICATE of bug 457553
Alias: None
Product: krita
Classification: Applications
Component: layer styles (show other bugs)
Version: 5.1.5
Platform: Microsoft Windows Microsoft Windows
: NOR major
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-09 09:54 UTC by Azazel
Modified: 2023-01-12 12:29 UTC (History)
1 user (show)

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


Attachments
the bug will appear in this file (2.12 MB, application/x-krita)
2023-01-09 09:54 UTC, Azazel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Azazel 2023-01-09 09:54:12 UTC
Created attachment 155128 [details]
the bug will appear in this file

in the attachment ,the layer 12 11 9 and the group layer 3 13 is using same style preset ,when the file reopened,Their separate settings will be overwritten by the settings of the top-level style preset
Comment 1 wolthera 2023-01-10 20:23:13 UTC
Thanks for the test file!

Hm... Output in the terminal is....

> Duplicated UUID "b3273841-9b79-432e-ab85-19e2825014c8" for styles "<颜料图层 11> (嵌入)" and "<颜料图层 12> (嵌入)"
> Duplicated UUID "b3273841-9b79-432e-ab85-19e2825014c8" for styles "<颜料图层 9> (嵌入)" and "<颜料图层 12> (嵌入)"
> Duplicated UUID "b3273841-9b79-432e-ab85-19e2825014c8" for styles "<颜料图层 1> (嵌入)" and "<颜料图层 12> (嵌入)"
> Duplicated UUID "b3273841-9b79-432e-ab85-19e2825014c8" for styles "<图层组 13> (嵌入)" and "<颜料图层 12> (嵌入)"
> Duplicated UUID "b3273841-9b79-432e-ab85-19e2825014c8" for styles "<图层组 3> (嵌入)" and "<颜料图层 12> (嵌入)"

And I can sort of confirm the behaviour. When switching from style 12 to 10, saving and reloading, style 12 will now have no. 10's properties. Seems the UUID code doesn't work properly somehow, or at the least, the parser doesn't understand a single style can be used multiple times.
Comment 2 wolthera 2023-01-12 12:29:12 UTC
*** This bug has been marked as a duplicate of bug 457553 ***