Bug 475334

Summary: Artifacting when flattening animation layer + transform mask
Product: [Applications] krita Reporter: Redkitt3n14 <marmaladeplan3t>
Component: AnimationAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 5.2.0   
Target Milestone: ---   
Platform: Android   
OS: Android 13.x   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Redkitt3n14 2023-10-07 18:41:39 UTC
SUMMARY
Flatten layer leaving artifacts on animated layers

Note it is 5.2.0 release candidate 1

There are 2 duplicate issues from 2017 however they state to be fixed and the issue has re-emerged.

STEPS TO REPRODUCE
1. Make animaton
2. Add transform mask
3. Flatten layer

OBSERVED RESULT
chance of artifacting, may be higher when animaton is playing

EXPECTED RESULT
No artifacts on resultant layer

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Redkitt3n14 2023-10-07 18:49:23 UTC
Dropbox with example of artifact creation
https://www.dropbox.com/scl/fo/ly8awl7pnjwcvv6kjvjdl/h?rlkey=haq07riyubqugwg9sf3gagmyc&dl=0
Comment 2 Dmitry Kazakov 2023-10-23 15:09:28 UTC
Git commit b5b72a6de27d5d2b4236265ad6b14d255afb09d7 by Dmitry Kazakov.
Committed on 23/10/2023 at 17:08.
Pushed by dkazakov into branch 'master'.

Fix artifacts when flattening animated transform mask

In forceUpdateTimedNode() we should rerender the transform mask
in case the cache is not valid due to the time change.

M  +12   -2    libs/image/kis_transform_mask.cpp

https://invent.kde.org/graphics/krita/-/commit/b5b72a6de27d5d2b4236265ad6b14d255afb09d7
Comment 3 Dmitry Kazakov 2024-02-28 18:09:31 UTC
Git commit b545fc4f4e9f3b5c95b47d5af6ba92ce61d3ea0e by Dmitry Kazakov.
Committed on 28/02/2024 at 12:42.
Pushed by dkazakov into branch 'kazakov/for-5.2'.

Fix artifacts when flattening animated transform mask

In forceUpdateTimedNode() we should rerender the transform mask
in case the cache is not valid due to the time change.

M  +12   -2    libs/image/kis_transform_mask.cpp

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