| Summary: | Faulty Fill pattern when importing for a Fill Layer | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Ahab Greybeard <ahab.greybeard> |
| Component: | Resource Management | Assignee: | Halla Rempt <halla> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | lempikq |
| Priority: | NOR | ||
| Version First Reported In: | nightly build (please specify the git hash!) | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/graphics/krita/commit/741df3a8641a072e676c48dfb0febb2b2858ae00 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Ahab Greybeard
2020-12-01 11:49:50 UTC
Git commit 741df3a8641a072e676c48dfb0febb2b2858ae00 by Halla Rempt. Committed on 01/04/2021 at 12:35. Pushed by rempt into branch 'master'. Set the name on the resource from the database Because many resources use the filename directly for the name, and the filename now is versioned, and we don't want the versioned filename used as the name. This fixes importing a resource and using it in a pattern fill layer. M +5 -2 libs/resources/KisResourceLocator.cpp https://invent.kde.org/graphics/krita/commit/741df3a8641a072e676c48dfb0febb2b2858ae00 I'm having similar problem in the latest Krita 4.4.7 Details: I’m on Win 10, latest krita (portable) 4.4.7 release. Issue: Fill Layer with custom pattern loaded from a file doesn’t stay after saving krita file and restarting krita and opening the file again. (I did not move krita, the pattern file or the kra file anywhere, this happens every time) How to reproduce: 1. Add Fill Layer 2. Pattern 3. Import Reference 4. Load your pattern 5. Select your pattern 6. Ok 7. Save file 8. Restart Krita 9. Fll Layer should still be in Layers but the pattern isn’t visible (the fill layer is EMPTY) .filterconfig for the fill layer after the steps above (!!!) (I replaced the username with USERNAME) <!DOCTYPE params> <params version="1"> <param name="pattern" type="string"><![CDATA[C:/Users/USERNAME/AppData/Roaming/krita/patterns/DA_S_Oil_Primed DMF cotton mid2.pat]]></param> <param name="transform_keep_scale_aspect" type="string"><![CDATA[true]]></param> <param name="transform_offset_x" type="string"><![CDATA[0]]></param> <param name="transform_offset_y" type="string"><![CDATA[0]]></param> <param name="transform_rotation_x" type="string"><![CDATA[0]]></param> <param name="transform_rotation_y" type="string"><![CDATA[0]]></param> <param name="transform_rotation_z" type="string"><![CDATA[0]]></param> <param name="transform_scale_x" type="string"><![CDATA[1]]></param> <param name="transform_scale_y" type="string"><![CDATA[1]]></param> <param name="transform_shear_x" type="string"><![CDATA[0]]></param> <param name="transform_shear_y" type="string"><![CDATA[0]]></param> </params> Just to be clear I’m loading the pattern png image from (directory not related to krita in any way, Documents is my custom documents folder not the windows built in one): D:/Documents/Resources/PaperRefs/DA_S_Oil_Primed DMF cotton mid.png If you don't restart Krita just close the document and open it again the pattern stays. If you restart krita, open the document, select properties on the empty fill layer from pravious session (firstly go through the reproduction steps above) you can find the pattern in the patterns, if you select it here now, save file then you can restart krita and the pattern will stay, below is the .filterconfig after this adjustment (!!!) <!DOCTYPE params> <params version="1"> <param type="string" name="pattern"><![CDATA[DA_S_Oil_Primed DMF cotton mid2.pat]]></param> <param type="string" name="transform_keep_scale_aspect"><![CDATA[true]]></param> <param type="string" name="transform_offset_x"><![CDATA[0]]></param> <param type="string" name="transform_offset_y"><![CDATA[0]]></param> <param type="string" name="transform_rotation_x"><![CDATA[0]]></param> <param type="string" name="transform_rotation_y"><![CDATA[0]]></param> <param type="string" name="transform_rotation_z"><![CDATA[0]]></param> <param type="string" name="transform_scale_x"><![CDATA[1]]></param> <param type="string" name="transform_scale_y"><![CDATA[1]]></param> <param type="string" name="transform_shear_x"><![CDATA[0]]></param> <param type="string" name="transform_shear_y"><![CDATA[0]]></param> </params> As you can see it's different then after the reproduction steps so I assume there's something wrong with paths after loading a new pattern and after reusing it after the restart BUT according to AhabGreybeard who confirmed this entire issue (https://krita-artists.org/t/bug-4-4-7-fill-layer-doesnt-store-a-custom-loaded-pattern-with-file-save/27572/12) the above problem (the repro steps) happen even with already built-in patterns so I don't know exactly where the problem comes from since it seems to be broader than just patterns that are newly loaded into krita. I don't know if I should open a new bug report or if this is supposed to get reopened so please if someone could let me know or make the decision ;). Thank you. Ah, I rewrote this completely for Krita 5... Could you check with the latest krita plus build? (https://binary-factory.kde.org/job/Krita_Stable_Windows_Build/) (In reply to Halla Rempt from comment #3) > Ah, I rewrote this completely for Krita 5... Could you check with the latest > krita plus build? > (https://binary-factory.kde.org/job/Krita_Stable_Windows_Build/) I gave it a try and it seems to be ok. At least I haven't encountered a problem. Cool, thanks for testing! |