SUMMARY git a792621 It's not just an issue happened in nightly. it has been happening for a long time. STEPS TO REPRODUCE 1. Draw something on a layer and select an area. 2. Trigger transforming tool by Ctrl+T or whatever works(DO NOT 'APPLY' IT YET!). 3. Ctrl+C or Ctrl+X and paste it. OBSERVED RESULT The pasted layer is empty. EXPECTED RESULT It should work like a normal copy/cut > paste action. SOFTWARE/OS VERSIONS Windows: Win7 macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION I suspect this founding is related. > https://krita-artists.org/t/make-it-flawless-to-select-region-copy-cut
Using in-stack preview for transform tool doesn't make a difference in result. Also, when you trigger the transform tool, the layer thumbnail shows the selectetd area (temporarily) empty.
Oddly this doesn't happen in krita stable plus builds. In git 90628dc, the layer thumbnail appears temporarily empty, but the copy/cut>paste still works and doesn't output empty layer.
Assigning to myself because it sounds like a side effect of my clipboard refactoring
Cannot reproduce on the exact same hash. Copying and pasting with the transform tool enabled result in a new layer being pasted with the contents of the selection.
(In reply to amyspark from comment #4) > Cannot reproduce on the exact same hash. Copying and pasting with the > transform tool enabled result in a new layer being pasted with the contents > of the selection. It's still happening in the latest nightly(git 3ae600d) on my side. I'll attach a video recording.
Created attachment 148967 [details] video recording transform copy paste bug
Going to assign to myself, as it definitely seems like my paste handling code is being somehow over-strict. (Resolving will take a while, as I'm putting the finishing touches on the xsimd branch and all my builds are pointing to that branch.)
Created attachment 149028 [details] Proof it works in current master (including hash)
Attaching proof it works in current master, including the hash of the commit. (See https://invent.kde.org/graphics/krita/-/merge_requests/1452, it has a single commit on top of current master)
Hmm, I *can* reproduce the bug but occasionally. I'll add this to my todo list and try to find the outlier variable.
I'm not sure if it's the extension of this bug but recent nightlies outputs nothing when you copy paste something while the transforming is triggered, no matter how fast or slow you do it. Additionally if you just select->cut/copy the layer fast enough it outputs nothing without even involving transforming. tested in git 69812c0