Bug 477909

Summary: Transform Tool in Wrap Around mode is destructive (changes the layer)
Product: [Applications] krita Reporter: Katie <katakka821>
Component: ToolsAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: dimula73, halla
Priority: NOR    
Version First Reported In: 5.2.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshots showing how the layer border expands
Gif showing the destructive effects on the layer

Description Katie 2023-12-02 13:18:37 UTC
Created attachment 163758 [details]
Screenshots showing how the layer border expands

SUMMARY
Currently the Wrap Around Mode is destructive when attempting to move the layer outside the canvas. It extends the layer to include the repeated parts of the image. This makes it harder to experiment and create seamless patterns by arranging different elements, as it introduces changes to the images.

Moving the layer

STEPS TO REPRODUCE
1. Enable Wrap Around mode
2. Move your layer outside the canvas
3. Disable Wrap Around mode

OBSERVED RESULT
The layer expands to include parts of the repeated image

EXPECTED RESULT
The layer should remain unchanged

Associated issue:
Transforming the layer

STEPS TO REPRODUCE
1. Enable Wrap Around mode
2. Move your layer outside the canvas
3. Transform the layer (rotate, resize, etc)

OBSERVED RESULT
The transformation is applied to the "updated" layer (the one that got extended after moving outside the canvas), which results in the design being cut and distorted.

EXPECTED RESULT
The transformation should be applied only to the original layer.
Comment 1 Katie 2023-12-02 14:24:53 UTC
Created attachment 163763 [details]
Gif showing the destructive effects on the layer
Comment 2 Dmitry Kazakov 2024-02-28 10:53:47 UTC
Hi, Katie!

I'm afraid that is exactly how Move Tool is expected to work. Could you explain a bit what is your usecase/pipeline? Why do you want to layer to be unchanged after moving it? Do you expect the layer to jump back into the original position right when you disable Wraparound mode? What is the expected behavior for you?
Comment 3 Dmitry Kazakov 2024-02-28 12:17:24 UTC
Opinion from IRC:

<askmeaboutloom> dmitryK: the move tool thing is a red herring. What the user wants is for the transform tool to interact properly with wraparound mode, which it doesn't.
<askmeaboutloom> See https://mega.nz/file/g8pBABYC#rizdApUUlzBGQA47rE6jeuB00tukzF8M4fnhAprK0fg
<askmeaboutloom> I would expect the smiley I selected to rotate, but instead it only rotates the bit that exists on the original canvas. The move tool is not the culprit evidently, since I didn't even use it.