Bug 373338

Summary: Add clone layers of many layers at once
Product: [Applications] krita Reporter: Spencer Brown <sbrown124>
Component: Layer StackAssignee: Eoin O'Neill <eoinoneill1991>
Status: RESOLVED FIXED    
Severity: wishlist CC: eoinoneill1991
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Spencer Brown 2016-12-06 07:07:12 UTC
Let's say I've got sixteen layers in my base color texture for different material layers. If I want to clone these layers to inherit alpha from for another BRDF parameter, I have to click each layer, click the arrow next to the add layer button, and add a clone layer for each. Then I have to select all of the layers and drag them into the group for the next BRDF parameter I'm working on. This can get a bit tedious.

I would like to be able to select multiple layers, right click them, click a menu item called "Clone these layers" or something similar, and get a big old stack of clones, selected and ready to go where I need them, above the topmost layer in my selection.

What do you think?
Comment 1 Eoin O'Neill 2019-08-05 17:28:18 UTC
I've confirmed this bug and there's a merge request pending that fixes it. Thank you for taking the time to report any issues you have with Krita!

You can view the changes pending to resolve this issue here:
https://invent.kde.org/kde/krita/merge_requests/102

Thanks again!
Comment 2 Eoin O'Neill 2019-08-09 09:23:56 UTC
This bug should be resolved now. 

You can view the commit here: 
https://invent.kde.org/kde/krita/commit/2cfe3745f430dced886d84cbe07016a85d54945f

Thank you for taking the time to report bugs!
Comment 3 Dmitry Kazakov 2019-09-09 14:51:55 UTC
Git commit d568016b0f0be38d9c27b81645710827037baba0 by Dmitry Kazakov.
Committed on 09/09/2019 at 14:48.
Pushed by dkazakov into branch 'master'.

Fix "New Multiple Clone Layers" feature

1) It should not try to copy masks
2) The position of the newly created layers should be at the top of
   the layers stack. Therefore, we should use
   sortAndFilterMergableInternalNodes.
Related: bug 411704

M  +11   -7    libs/ui/kis_layer_manager.cc
M  +1    -1    libs/ui/kis_layer_manager.h
M  +6    -1    libs/ui/kis_node_manager.cpp

https://invent.kde.org/kde/krita/commit/d568016b0f0be38d9c27b81645710827037baba0
Comment 4 Dmitry Kazakov 2019-09-13 09:59:56 UTC
Git commit 7f1d7472bda156cbbac5b6c0b89e8dc0582d9759 by Dmitry Kazakov.
Committed on 13/09/2019 at 09:00.
Pushed by dkazakov into branch 'krita/4.2'.

Fix "New Multiple Clone Layers" feature

1) It should not try to copy masks
2) The position of the newly created layers should be at the top of
   the layers stack. Therefore, we should use
   sortAndFilterMergableInternalNodes.
Related: bug 411704

M  +11   -7    libs/ui/kis_layer_manager.cc
M  +1    -1    libs/ui/kis_layer_manager.h
M  +6    -1    libs/ui/kis_node_manager.cpp

https://invent.kde.org/kde/krita/commit/7f1d7472bda156cbbac5b6c0b89e8dc0582d9759