https://bugs.kde.org/show_bug.cgi?id=514744
--- Comment #5 from Dmitry Kazakov <[email protected]> --- Git commit d86c29e21755d5a53753a07a27708e74cf635e59 by Dmitry Kazakov. Committed on 27/01/2026 at 13:49. Pushed by dkazakov into branch 'master'. Fix loading presets with conflicting embedded resources It might happen that two paintop presets may embed resources (e.g. patterns) with the same filename, but still different. In such case they might clash in a conflict when added to the common "memory" storage. Before the patch, the preset that would load the second would just ovewrite the previously added embedded resource, effectively breaking the other preset. This patch fixes this issue by renaming embedded resources on loading, if they are going to cause a naming conflict. The resource will (hopefully) still be addressed by the preset by its md5 sum. The patch also had to fix KisPaintOpPreset::sideLoadedResources() to use exactMatch() instead of bestMatch(). exactMatch() skips fetching a resource by name/filename if md5sum is provided. M +2 -2 libs/image/brushengine/kis_paintop_preset.cpp M +90 -2 libs/image/tests/KisPaintOpPresetTest.cpp M +1 -0 libs/image/tests/KisPaintOpPresetTest.h A +- -- libs/image/tests/data/conflicting-patterns/preset-stripes-cross.kpp A +- -- libs/image/tests/data/conflicting-patterns/preset-stripes-vert-v2.kpp A +- -- libs/image/tests/data/conflicting-patterns/preset-stripes-vert.kpp M +31 -3 libs/resources/KisResourceLocator.cpp M +16 -0 libs/resources/KisResourceLocator.h M +23 -1 libs/resources/KisResourcesInterface.cpp M +34 -3 libs/resources/KisResourcesInterface.h M +20 -0 libs/resources/KoResourceLoadResult.cpp M +3 -0 libs/resources/KoResourceLoadResult.h https://invent.kde.org/graphics/krita/-/commit/d86c29e21755d5a53753a07a27708e74cf635e59 -- You are receiving this mail because: You are watching all bug changes.
