Bug 496665 - Animation curves: transformation mask keeps adding keyframes
Summary: Animation curves: transformation mask keeps adding keyframes
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Animation (show other bugs)
Version: 5.2.6
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-25 12:02 UTC by call me rose
Modified: 2024-11-25 14:07 UTC (History)
1 user (show)

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


Attachments
report for the crash mentioned in my forum post (28.00 KB, text/plain)
2024-11-25 12:02 UTC, call me rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description call me rose 2024-11-25 12:02:15 UTC
Created attachment 176101 [details]
report for the crash mentioned in my forum post

SUMMARY
hello! im trying to do some simple tweening using the animation curves docker, and i use very few keyframes for this. however a few different operations (crop, scale image) make it so that a new keyframe has been added in between the ones i made myself, on every single frame. (note: this is my first time making a bug report, so apologies for any mistakes).

STEPS TO REPRODUCE: CROP
1. On a new file, create a new layer and draw a dot with any brush.
2. On the animation timeline, add a blank frame on frame 0 and frame 21 for the dot layer.
3. Add a transformation mask to the dot layer. Pin both layers to the timeline for ease.
4. In the animation curves docker, create new keyframes for the transformation mask on frame 0 and frame 20.
5. Change the value of the keyframe on frame 20 to val:150.00. When the animation is played, the dot should move from left to right until frame 20 where it disappears.
6. Save the file. 
7. Crop the image.
8. Undo the crop.

OBSERVED RESULT
As soon as the image is cropped, new keyframes are added on every frame between frame 0 and frame 20 (on the transformation mask). The new keyframes are on every single property, not just Position (X). They match the values each frame had before the crop, that is, if i had manually added keyframes on each frame by clicking "add keyframe", it would have looked like this as well. Undoing the crop does not remove the additional keyframes.

EXPECTED RESULT
No new keyframes should be added after cropping. 

STEPS TO REPRODUCE: SCALE IMAGE
1. Use the saved version of the file from the previous example (or repeat steps 1-5). 
2. Image -> Scale Image To New Size.
3. Undo the scaling.

OBSERVED RESULT
Same issue as with cropping, though undoing the scaling also undoes the changes on the keyframes.

EXPECTED RESULT
No new keyframes should be added after scaling the image.

these are the bugs that prompted me filing this report. however, i also tested a few more functions from the image tab, and found even more bugs. ive listed them here: https://krita-artists.org/t/animation-curves-transformation-mask-keeps-adding-keyframes/107860/
Comment 1 Ahab Greybeard 2024-11-25 14:07:19 UTC
I can Confirm the addition of keyframes for the 5.2.6 appimage but I don't have any crashing.
It was introduced in version 5.2.3.
Version 5.2.2 and some tested previous versions do not have this happening.

It happens if you do even a minimal Scale, Resize Canvas or a Crop action.

If you Undo the Scale then the animation curves go back to how they were.
If you Undo a Resize Canvas or a Crop then they do not go back and an alternating offset in values happens with Undo then Redo.

I've posted some images at which illustrate this:
https://krita-artists.org/t/animation-curves-transformation-mask-keeps-adding-keyframes/107860/8