Bug 464041

Summary: The settings of the same style preset after the file is reopened will be overwritten by the settings of the top-level style preset
Product: [Applications] krita Reporter: Azazel <1962814194>
Component: layer stylesAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: major CC: griffinvalley
Priority: NOR    
Version First Reported In: 5.1.5   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: the bug will appear in this file

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 ***