Summary: | Those brushes cannot be found after importing "mypaint brush bundle". | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Eranthis stellata Maxim <1012468643> |
Component: | Resource Management | Assignee: | amyspark <amy> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | amy, tamtamy.tymona |
Priority: | NOR | ||
Version: | nightly build (please specify the git hash!) | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/ea5450925630338c79be9af21a9468f458ae11ff | Version Fixed In: | |
Sentry Crash Report: | |||
Bug Depends on: | |||
Bug Blocks: | 445282 |
Description
Eranthis stellata Maxim
2021-07-13 22:37:01 UTC
I cannot reproduce on commit 804225bc51. Can you check if your user folder has a copy of these old brushes? if so, can you try removing them, regenerate the database and check if the brush pack appears? (Apologies for the previous comment, I copy/pasted it from another bug report.) Confirming on commit 804225bc51. Bundle manifest shows that MyPaint brushes that are exported are listed as ".kpp", but the actual file has ".myb". On load, this appears in the log: Bundle "C:/Users/Amalia/AppData/Roaming/krita/Test_Mypaint.bundle" is broken. File "paintoppresets/c)_Pencil_1_Sketch_(mypaint amyspark).kpp" is missing Bundle "C:/Users/Amalia/AppData/Roaming/krita/Test_Mypaint.bundle" is broken. File "paintoppresets/c)_Pencil_2b_(mypaint amyspark).kpp" is missing Kind of funny since I just reported this bug: bug 443907, which talks about bundle manifest having wrong filenames. They do have the correct filenames *grins* but MyPaint brushes serialization is completely broken. The original author assumed they'd be read as JSON; but on saving to disk, the save format is KoResource's PNG serialization, which is in turn ignored by the loadFromDevice impl. If I may amend the above, MyPaint brushes loaded from .myb will preserve their extensions on save, which is wrong because of the change in serialization format. A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/1102 Git commit cbf78192cb7e3a4774de736cf2bd2e4dec91f6da by Halla Rempt, on behalf of L. E. Segovia. Committed on 19/10/2021 at 07:51. Pushed by rempt into branch 'master'. MyPaint: accept brushes serialized as KPP and fix their names M +34 -5 plugins/paintops/mypaint/MyPaintPaintOpPreset.cpp M +5 -0 plugins/paintops/mypaint/MyPaintPaintOpPreset.h https://invent.kde.org/graphics/krita/commit/cbf78192cb7e3a4774de736cf2bd2e4dec91f6da Git commit ea5450925630338c79be9af21a9468f458ae11ff by Dmitry Kazakov, on behalf of L. E. Segovia. Committed on 17/11/2021 at 13:47. Pushed by dkazakov into branch 'krita/5.0'. MyPaint: accept brushes serialized as KPP and fix their names M +34 -5 plugins/paintops/mypaint/MyPaintPaintOpPreset.cpp M +5 -0 plugins/paintops/mypaint/MyPaintPaintOpPreset.h https://invent.kde.org/graphics/krita/commit/ea5450925630338c79be9af21a9468f458ae11ff Git commit 14e8cd88b267d0c083cb7bee693d02f684d022d6 by L. E. Segovia. Committed on 25/11/2021 at 13:47. Pushed by lsegovia into branch 'krita/5.0'. Fix naming of MyPaint brushes on versioned serialization Before this commit, versioned .myb files would apply the .kpp suffix, only to be overridden by the save preset dialog. Related: bug 445281, bug 445282 M +5 -6 libs/ui/dialogs/KisDlgSavePreset.cpp M +6 -4 plugins/paintops/mypaint/MyPaintPaintOpPreset.cpp M +0 -7 plugins/paintops/mypaint/MyPaintPaintOpPreset.h https://invent.kde.org/graphics/krita/commit/14e8cd88b267d0c083cb7bee693d02f684d022d6 Git commit a4f84ca9a3070ff4fe5949da3e8028fe131f3b26 by L. E. Segovia. Committed on 25/11/2021 at 13:50. Pushed by lsegovia into branch 'master'. Fix naming of MyPaint brushes on versioned serialization Before this commit, versioned .myb files would apply the .kpp suffix, only to be overridden by the save preset dialog. Related: bug 445281, bug 445282 (cherry picked from commit 14e8cd88b267d0c083cb7bee693d02f684d022d6) M +5 -6 libs/ui/dialogs/KisDlgSavePreset.cpp M +6 -4 plugins/paintops/mypaint/MyPaintPaintOpPreset.cpp M +0 -7 plugins/paintops/mypaint/MyPaintPaintOpPreset.h https://invent.kde.org/graphics/krita/commit/a4f84ca9a3070ff4fe5949da3e8028fe131f3b26 |