Bug 472636 - ten brush script is not working properly (last night version 5.2.0-prealpha-40afac1de4-)
Summary: ten brush script is not working properly (last night version 5.2.0-prealpha-4...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Scripting (other bugs)
Version First Reported In: nightly build (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-25 22:54 UTC by ahmett
Modified: 2023-07-27 07:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ahmett 2023-07-25 22:54:10 UTC
I downloaded the last night version of krita.(krita-nightly-x64-5.2.0-prealpha-40afac1de4-) and I noticed that the ten brush script is not working properly. Brushes cannot save. and the script error screen pops up.
Comment 1 Bug Janitor Service 2023-07-26 21:32:23 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/1869
Comment 2 Freya Lupen 2023-07-26 21:42:40 UTC
Git commit 2f6ce2c1ab0fc9428c8e4f51d00c0948b0e04fd4 by Freya Lupen.
Committed on 26/07/2023 at 23:24.
Pushed by rempt into branch 'master'.

Fix Ten Brushes script error when unconfigured

'list[idx] = value' doesn't work if idx may be invalid.
Use list.insert(idx, value) instead.

M  +1    -1    plugins/python/tenbrushes/tenbrushes.py

https://invent.kde.org/graphics/krita/-/commit/2f6ce2c1ab0fc9428c8e4f51d00c0948b0e04fd4
Comment 3 Halla Rempt 2023-07-27 07:36:28 UTC
Git commit b4556fd9b0947541bb82797fb533b19c12448e2d by Halla Rempt, on behalf of Freya Lupen.
Committed on 27/07/2023 at 09:36.
Pushed by rempt into branch 'krita/5.2'.

Fix Ten Brushes script error when unconfigured

'list[idx] = value' doesn't work if idx may be invalid.
Use list.insert(idx, value) instead.
(cherry picked from commit 2f6ce2c1ab0fc9428c8e4f51d00c0948b0e04fd4)

M  +1    -1    plugins/python/tenbrushes/tenbrushes.py

https://invent.kde.org/graphics/krita/-/commit/b4556fd9b0947541bb82797fb533b19c12448e2d