Bug 461109

Summary: Layer content gone after transformation
Product: [Applications] krita Reporter: kousakiaya
Component: Tools/TransformAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 5.1.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Notice the glitch after transformation

Description kousakiaya 2022-10-28 11:28:20 UTC
SUMMARY
I think there are chances that the content of the layer will be gone after you transform it.
The canvas still has it (shows it), but the layer is empty, you are seeing the “cache”.
If you inspect this layer in isolation mode, you see it is empty.


STEPS TO REPRODUCE
This happens by chance. Just keep drawing and transforming and you will see.

OBSERVED RESULT
The layer content is gone, but the cache still shows it.

EXPECTED RESULT
The layer content should be there.

SOFTWARE/OS VERSIONS
Windows 10

ADDITIONAL INFORMATION
Comment 1 kousakiaya 2022-10-28 11:31:35 UTC
Created attachment 153259 [details]
Notice the glitch after transformation
Comment 2 kousakiaya 2022-10-28 11:47:47 UTC
The full screen recording here
https://youtu.be/6ijRyVeOAgE
Watch from 1:27
Comment 4 Dmitry Kazakov 2022-11-09 11:33:23 UTC
Git commit 01b342fc07c1a8bcaa210c81b194e2a34020b299 by Dmitry Kazakov.
Committed on 09/11/2022 at 11:32.
Pushed by dkazakov into branch 'master'.

Fix image data loss in when the transform tool action is applied to quickly

It may happen when the tool is quickly switched to and from
by V shortcut assigned to the Brush Tool.
Related: bug 460557

M  +11   -0    plugins/tools/tool_transform2/strokes/inplace_transform_stroke_strategy.cpp

https://invent.kde.org/graphics/krita/commit/01b342fc07c1a8bcaa210c81b194e2a34020b299
Comment 5 Dmitry Kazakov 2022-11-09 11:38:56 UTC
Git commit 825fa9d2b04847cfa5dffcc8600ff02c665d4f1b by Dmitry Kazakov.
Committed on 09/11/2022 at 11:38.
Pushed by dkazakov into branch 'krita/5.1'.

Fix image data loss in when the transform tool action is applied to quickly

It may happen when the tool is quickly switched to and from
by V shortcut assigned to the Brush Tool.
Related: bug 460557

M  +11   -0    plugins/tools/tool_transform2/strokes/inplace_transform_stroke_strategy.cpp

https://invent.kde.org/graphics/krita/commit/825fa9d2b04847cfa5dffcc8600ff02c665d4f1b