Bug 481599

Summary: The Transform Mask does not work while animating.
Product: [Applications] krita Reporter: Hank <hp.digitaldecadence>
Component: Tools/TransformAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: dimula73
Priority: NOR    
Version First Reported In: 5.2.2   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Videos showing how to reproduce the bug.

Description Hank 2024-02-20 23:46:03 UTC
Created attachment 165965 [details]
Videos showing how to reproduce the bug.

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
0. I have made some short recordings. Please see the video attached as I'm sure my instructions are going to be... poorly explained.
1. On a blank layer, draw a simple figure. I drew a circle.
2. Add a transform mask.
3. On frame zero, Add transform mask key frames. Repeat this step on frames 1 and 2 making sure to move the figure to a different spot on the canvas for each frame. For me, I set keyframes for the figure to be at the top, middle, and bottom of the canvas.
4. Return to frame zero, select the figure (through the transform mask) and try to adjust it's position.
5. Observe the results. Keyframes for frame 1 and 2 disappear and the values for the keyframes on frame 0 are overwritten with different values without your input.

OBSERVED RESULT
Keyframes for frame 1 and 2 disappear and the values for the keyframes on frame 0 are overwritten with different values without your input. In some cases, as soon as you edit a new frame, the previous frame is "cleared".

EXPECTED RESULT
To be able to create and edit frame-specific keyframe values and have those values stay with that specific frame.

SOFTWARE/OS VERSIONS
Windows: 10 Pro Version 22H2 (OS Build 19045.4046)
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
This issue seems to be present in Krita 5.2.1 as well. I have a friend who uses that version and the issue is present there too. I do not remember this being an issue in 5.1.x. But I don't know for sure on that one.
Comment 1 Hank 2024-02-21 01:08:49 UTC
Tested the transform tool / transform mask while animating in 5.1.4. The bug issue is not present there.
Tested again in 5.2.1 the bug is present there.
An additional detail, the preview in Tool Options may also be the culprit. I've noticed that the once I select the object, the preview incorrectly moves the object to the previous user-confirmed location instead of where the object was/is when you select it.
Comment 2 Dmitry Kazakov 2024-02-26 14:02:16 UTC
Hi, Hank!

Could you please try the nightly builds of Krita? I have rewritten the animated transform masks engine since them and it should resolve most of the issues :)

https://invent.kde.org/graphics/krita/-/jobs/1607958/artifacts/browse
Comment 3 Hank 2024-03-08 22:31:09 UTC
(In reply to Dmitry Kazakov from comment #2)
> Hi, Hank!
> 
> Could you please try the nightly builds of Krita? I have rewritten the
> animated transform masks engine since them and it should resolve most of the
> issues :)
> 
> https://invent.kde.org/graphics/krita/-/jobs/1607958/artifacts/browse

Greetings Dmitry!
Thanks for getting this fixed and sorry for my delayed response.
I am unable to test the nightly builds as the link to download those are currently not available.
I'll gladly test a new build for the transform mask bugs once they are available again. :)