https://bugs.kde.org/show_bug.cgi?id=422949
Bug ID: 422949
Summary: master: python resources() function is broken
Product: krita
Version: git master
Platform: Debian unstable
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Scripting
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
The python API for resources returns an empty list when it should return a list
of all resources of the corresponding type specified. Most certainly related to
the ongoing resources rewrite.
STEPS TO REPRODUCE
1. Run krita build where "RESOURCES REWRITE GOING ON" is displayed in the view
title bar, probably any unstable git master build
2. Open Tool->Scripter and type ```print(Application.resources("preset"))```
3. Click Run
OBSERVED RESULT
```{}``` is printed in the output panel
EXPECTED RESULT
A python list of all presets currently loaded in krita is printed in the output
panel
SOFTWARE/OS VERSIONS
Windows:
macOS:
Linux/KDE Plasma: Debian GNU/Linux Sid
(available in About System)
KDE Plasma Version:
KDE Frameworks Version:
Qt Version:
ADDITIONAL INFORMATION
This breakage breaks python scripts that rely on the resources() function,
namely the Ten Brushes script.
Specifying other types like "pattern" or "gradient" also return empty list.
--
You are receiving this mail because:
You are watching all bug changes.