Bug 396221

Summary: Pasted vector layers always pasted at top, or in same vector layer
Product: [Applications] krita Reporter: kaz.foxsen
Component: Layers/VectorAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: info, tamtamy.tymona
Priority: NOR    
Version First Reported In: 4.1.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description kaz.foxsen 2018-07-05 19:46:59 UTC
I'm using Krita 4.1 on Win10 and the results of copying and pasting vectors is inconsistent (and potentially confusing) with results of pasting paint layers.

RASTER paste behavior: 

-Creates new paint layer above currently selected layer.


VECTOR paste: 

- If current layer is non-vector, a new vector layer is added (as expected) but it's above all layers instead of currently selected one. Dragging and dropping each vector layer into place gets cumbersome if dealing with 10s or 100+ layers. Ex. I'm making a cut-paper look image so each vector shape needs its own clipping group so I can add paper texture rotated at different angles.

- If current layer is vector, adds the shape to same layer (a feature that people would like to see available for paint layers, but is inconsistent with raster paste behavior).
Comment 1 David REVOY 2018-07-05 20:01:22 UTC
Hi @kaz.foxsen,

I switch this report as a Wishlist; because it is not really a bug, but more a part that needs a bit more polishing. But it is for bug triage logic; I totally do agree it is confusing: I confirm also the ticket.

What would be the correct behavior? Create a vector layer above the current layer selected (even if it is a vector layer) and paste the vector object in the content?
Comment 2 kaz.foxsen 2018-07-05 21:08:14 UTC
Thanks for the quick response.

The best result would depend on consistency with other layer-type paste results. Ideally, "paste as new layer" and "paste into layer" options would exist for paint, vector, and mask layers. "Paste as new layer" could be the default Ctrl-V for any layer type, but there could be an alternate menu/right-click option for the other types (like "Paste in Place" is an option in Photoshop).

I've seen posts in forums asking about ability to paste into an existing paint layer (I Googled it, wanting to know the same) and there was some explanation why it supposedly wasn't necessary, but I think "paste on same layer" is a good option, like if I want to add something copied from a paint layer to a mask layer, or add to a layer w/ a different blend mode, but creating a new layer and merging the two resets the blend back to Normal and creates extra steps. 

For more consistency, there'd need to be an option to merge vector layers without turning them into a paint layer. As far as pasting a new vector layer, I think it should act the same way as pasting a new paint layer and go above the currently selected layer.
Comment 3 Tiar 2020-12-10 23:40:29 UTC
Let's focus at the problem at hand: Krita pastes vector layers above all layers instead of on the currently selected one, as it would with raster layers. I'm actually wondering whether this shouldn't be a bug report, not a wish. It's a bit of a grey area :)