Bug 499785

Summary: Color Smudge engine samples outside select area
Product: [Applications] krita Reporter: divim13130
Component: Brush enginesAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: normal CC: spamless.9v5xj
Priority: NOR    
Version First Reported In: 5.2.9   
Target Milestone: ---   
Platform: unspecified   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: image of the behaviour

Description divim13130 2025-02-10 23:03:58 UTC
Created attachment 178131 [details]
image of the behaviour

SUMMARY


STEPS TO REPRODUCE
1. Select an area with the selection tool.
2. With a color smudge engine brush, do a brushstroke that overextends the selected area. (Also works with the canvas border.)

OBSERVED RESULT
If the center of the brush cursor goes outside the selected area, it will sample pixels outside the selected area, if there isnt any pixels to sample, it will erase the previous drawn pixels.

EXPECTED RESULT
The brush shouldnt sample anything outside the area or canvas border.

ADDITIONAL INFORMATION
Recreated on both Windows 10/11 and Android with exactly the same results, I created a thread in Krita Forums and people have agreed this is a known behaviour of color smudge brushes. Credit to user ¨YRH¨ for creating the attached image.