https://bugs.kde.org/show_bug.cgi?id=510082

Dmitry Kazakov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/grap
                   |                            |hics/krita/-/commit/97fbf20
                   |                            |fafbbe37dd20d1d779bf97b6103
                   |                            |7f1a9f
         Resolution|---                         |FIXED
             Status|REPORTED                    |RESOLVED

--- Comment #3 from Dmitry Kazakov <[email protected]> ---
Git commit 97fbf20fafbbe37dd20d1d779bf97b61037f1a9f by Dmitry Kazakov.
Committed on 27/01/2026 at 13:49.
Pushed by dkazakov into branch 'master'.

Fix gradient handling in the layer style dialog

The patch streamlines handling of the embedded resources in the layers
style. Basiclly, the of the layer style usage are currently the follwoing:

1) When loading a layer style into the global storage, the embedded resources,
like gradients and patterns are loaded as sideLoadedResources(). Which
moves the handling of the dependencies into KisResourceLocator, which, in
turn, deduplicates resource filenames, which fixes bug 514744.

2) When a layer style is loaded into a layer style dialog, its embedded
resources
are moved from an internal KisLocalStrokeResources into a temporary memory-
based resource storage, which is handled by
KisTemporaryResourceStorageLockAdapter.

3) KisCmbGradient has been changed to use KisGenericGradientEditor
instead of a normal gradient selector, which allows the user to edit
gradients without saving them into the global database, which used to
pollute the database (and cause bugs like 505986 and 467729)
Related: bug 505986, bug 476729, bug 514744

M  +17   -5    libs/image/KisAslStorage.cpp
M  +63   -46   libs/image/kis_asl_layer_style_serializer.cpp
M  +4    -2    libs/image/kis_asl_layer_style_serializer.h
M  +45   -7    libs/image/kis_psd_layer_style.cpp
M  +11   -1    libs/image/kis_psd_layer_style.h
M  +1    -0    libs/resources/CMakeLists.txt
M  +6    -0    libs/resources/KisLocalStrokeResources.cpp
M  +12   -0    libs/resources/KisLocalStrokeResources.h
M  +3    -0    libs/resources/KisMemoryStorage.cpp
M  +15   -0    libs/resources/KisResourceLocator.cpp
M  +15   -0    libs/resources/KisResourceLocator.h
M  +32   -0    libs/resources/KisResourceModel.cpp
M  +14   -0    libs/resources/KisResourceModel.h
M  +81   -38   libs/resources/KisResourceStorage.cpp
M  +1    -0    libs/resources/KisResourceStorage.h
M  +9    -0    libs/resources/KisTagFilterResourceProxyModel.cpp
M  +1    -0    libs/resources/KisTagFilterResourceProxyModel.h
M  +9    -0    libs/resources/KisTagResourceModel.cpp
M  +1    -0    libs/resources/KisTagResourceModel.h
A  +42   -0    libs/resources/KisTemporaryResourceStorageLock.cpp     [License:
GPL(v2.0+)]
A  +44   -0    libs/resources/KisTemporaryResourceStorageLock.h     [License:
GPL(v2.0+)]
M  +159  -90   libs/ui/dialogs/kis_dlg_layer_style.cpp
M  +13   -10   libs/ui/dialogs/kis_dlg_layer_style.h
M  +0    -1    libs/ui/kis_layer_manager.cc
M  +36   -21   libs/ui/widgets/kis_cmb_gradient.cpp
M  +8    -4    libs/ui/widgets/kis_cmb_gradient.h

https://invent.kde.org/graphics/krita/-/commit/97fbf20fafbbe37dd20d1d779bf97b61037f1a9f

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to