Bug 457390 - Color reference layer method re-computes layer data each time.
Summary: Color reference layer method re-computes layer data each time.
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tools/Selection (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Deif Lou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-01 21:54 UTC by Ralek Kolemios
Modified: 2022-08-18 14:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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