Bug 466097 - `setActiveNode` followed by fill does not work as expected
Summary: `setActiveNode` followed by fill does not work as expected
Status: REPORTED
Alias: None
Product: krita
Classification: Applications
Component: Scripting (other bugs)
Version First Reported In: 5.1.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-19 18:03 UTC by alexandre
Modified: 2023-03-06 14:08 UTC (History)
1 user (show)

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


Attachments
Python script to reproduce the bug (1.19 KB, text/plain)
2023-02-19 18:03 UTC, alexandre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alexandre 2023-02-19 18:03:28 UTC
Created attachment 156504 [details]
Python script to reproduce the bug

SUMMARY
***
When creating a selection, then creating and activating a layer (a.k.a. node) and finaly filling the selection, fill is done on the former layer. Like if `setActiveNode` did not work.
***

STEPS TO REPRODUCE
1.  run the script in attachment on a greyscale image.

OBSERVED RESULT
fill is done on the former layer

EXPECTED RESULT
fill should be done on the new layer

SOFTWARE/OS VERSIONS
Linux salers 6.1.11-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 09 Feb 2023 20:06:08 +0000 x86_64 GNU/Linux
Qt Version: 5.15.8+kde+r181-1

ADDITIONAL INFORMATION
None
Comment 1 Halla Rempt 2023-03-06 14:08:04 UTC
Weirdly enough when I run the script, I get an error: NoneType object has no attribute "grow" on line 21.