Bug 444655 - Import bundle: cannot show brush that has been modified.
Summary: Import bundle: cannot show brush that has been modified.
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: Resource Management (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-30 09:29 UTC by cc
Modified: 2022-06-28 13:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cc 2021-10-30 09:29:52 UTC
SUMMARY

STEPS TO REPRODUCE

I modified a brush(for example size of airbrush) and click 'overwrite brush'.
Krita create a file:
.../krita/MY_Bundle.bundle_modified/paintoppresets/b)_Airbrush_Soft.0001.kpp

Create a new bundle, check MY_NEW_Bundle.bundle content:
/paintoppresets/b)_Airbrush_Soft.0001.kpp

But `cat META-INF/manifest.xml | grep Airbrush_Soft`:
<manifest:file-entry manifest:media-type="paintoppresets" manifest:full-path="paintoppresets/b)_Airbrush_Soft.kpp" manifest:md5sum="17280b4b3c047d23f90ee18f95d09b4f"/>

(There is no `0001` in it.)

OBSERVED RESULT

When I import MY_NEW_Bundle.bundle, AirBrush doesn't display in Brush Preset.

EXPECTED RESULT

ADDITIONAL INFORMATION

SESSION: 30 Oct 2021 14:56:00 +0800. Executing /Applications/krita.app/Contents/MacOS/krita

Krita Version: 5.1.0-prealpha (git 8e7ccd3), Qt version compiled: 5.12.11, loaded: 5.12.11. Process ID: 50894
Comment 1 Halla Rempt 2022-06-28 13:13:57 UTC
The brush saved in the new bundle is the modified brush, but the version number in the filename is removed and the original filename used.

Modified preset:

sha1sum b\)_Odzuki-塑造-神 笔53流量.0001.kpp 
         3ed668d6abf8520e0fe97a768d73b46872de8205  b)_Odzuki-塑造-神笔53流量.0001.kpp

preset from unzipped bundle:

sha1sum ~/bla/paintoppresets/b\)\ Odzuki-塑造-神笔53流量.kpp 
   3ed668d6abf8520e0fe97a768d73b46872de8205  /home/halla/bla/paintoppresets/b) Odzuki-塑造-神笔53流量.kpp