https://bugs.kde.org/show_bug.cgi?id=441605
amyspark <a...@amyspark.me> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap |hics/krita/commit/6039f5b45 |hics/krita/commit/885e62a63 |aad719625e22de38afdfd643214 |383e5117a158b3c6601c910ce21 |1ee1 |b2e6 --- Comment #5 from amyspark <a...@amyspark.me> --- Git commit 885e62a63383e5117a158b3c6601c910ce21b2e6 by L. E. Segovia. Committed on 21/10/2021 at 13:07. Pushed by lsegovia into branch 'master'. KisAslLayerStyleSerializer: fix layer-local gradients load In 2d426ac0b57ad8595a01b0c82d18633e4ec6060b, @dkazakov refactored the load so that layer styles would insert their resources on global storage instead of keeping them in their local stashes. However, this did not take in account that layers can also have locally defined e.g. gradients. These will not be found if the resource interface is overriden because they are resident on the root layer's localStrokeStorage. Upon a complete review of the code, the true reason for this failure lied not only in the (in)validity of the layer style, which I fixed in a previous commit, but also on the fact that gradients and patterns are uploaded *before* they are read (!!), in the embedded pattern registration loop. This commit fixes that by moving the two upload loops to inside the layer style deserialization, and making sure they upload only missing resources (to avoid accidentally quadratic behaviour). CCMAIL: dimul...@gmail.com CCMAIL: tamtamy.tym...@gmail.com M +4 -0 libs/image/kis_asl_layer_style_serializer.cpp M +19 -16 plugins/impex/psd/psd_loader.cpp https://invent.kde.org/graphics/krita/commit/885e62a63383e5117a158b3c6601c910ce21b2e6 -- You are receiving this mail because: You are watching all bug changes.