Bug 457390

Summary: Color reference layer method re-computes layer data each time.
Product: [Applications] krita Reporter: Ralek Kolemios <info>
Component: Tools/SelectionAssignee: Deif Lou <ginoba>
Status: RESOLVED FIXED    
Severity: minor CC: ginoba
Priority: NOR    
Version: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description Ralek Kolemios 2022-08-01 21:54:43 UTC
When using the fill or wand tool with color reference layers selected, each instance of a fill/select must first re-compute all matching color layers before the operation can continue. This can be a very long process if a large canvas or many layers are included.
Comment 1 Deif Lou 2022-08-18 14:58:45 UTC
Git commit 88027fa7af873cf94a311ac26bda0843b3254f66 by Deif Lou.
Committed on 18/08/2022 at 08:43.
Pushed by deiflou into branch 'master'.

Reuse the reference device on tools that use reference layers

This prevents the regeneration of the device every time the tool is used

M  +97   -33   libs/image/commands_new/KisMergeLabeledLayersCommand.cpp
M  +38   -8    libs/image/commands_new/KisMergeLabeledLayersCommand.h
M  +23   -17   plugins/tools/basictools/kis_tool_fill.cc
M  +2    -0    plugins/tools/basictools/kis_tool_fill.h
M  +35   -18   plugins/tools/selectiontools/kis_tool_select_contiguous.cc
M  +4    -0    plugins/tools/selectiontools/kis_tool_select_contiguous.h
M  +34   -16   plugins/tools/selectiontools/kis_tool_select_similar.cc
M  +4    -0    plugins/tools/selectiontools/kis_tool_select_similar.h
M  +34   -16   plugins/tools/tool_enclose_and_fill/KisToolEncloseAndFill.cpp
M  +5    -0    plugins/tools/tool_enclose_and_fill/KisToolEncloseAndFill.h

https://invent.kde.org/graphics/krita/commit/88027fa7af873cf94a311ac26bda0843b3254f66