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

--- Comment #7 from Dmitry Kazakov <dimul...@gmail.com> ---
Git commit 87df1d81b13d1a1df7e3e1529041c0a055cb94f6 by Dmitry Kazakov.
Committed on 14/10/2021 at 12:36.
Pushed by dkazakov into branch 'master'.

Fix double-embedding of the resources into the document

Original desing of the do document-storage was supposed to store the
embedded resources in memory, while the document is loaded and unload
them from the memory, as soon as the document is unloaded. But after
July's embed-all refactoring its meaning has changed. Instead it is
used to store the resources that should be embedded into the document
separately.

Therefore, now this storage of the resources must not include the
resources that are embedded via other means, e.g. asl layer styles
or asl/psd patterns.

Right now, the only place where this storage is really used for
embedding stuff is KisPaletteEditor.

If we want to recover the idea of "a memory-only storage that
unloads the resources on document unloading", we need to make a
separate storage for such temorary data.

The commit doesn't fix the bug linked, but it removes warnings
about trying to save non-serializable resources into a persistent
storage.

M  +0    -3    libs/image/KisResourceCollectorVisitor.h
M  +3    -0    libs/ui/KisDocument.cpp
M  +1    -1    plugins/impex/libkra/kis_kra_loader.cpp
M  +1    -1    plugins/impex/psd/psd_loader.cpp

https://invent.kde.org/graphics/krita/commit/87df1d81b13d1a1df7e3e1529041c0a055cb94f6

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

Reply via email to