mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 06:32:42 +00:00
Shade ink should use the full palette when we select just one color (fix #947)
This commit is contained in:
parent
dbb8a17d47
commit
8ca5b0c2f7
@ -383,7 +383,10 @@ class ContextBar::InkShadesField : public HBox {
|
||||
base::UniquePtr<doc::Remap> remap;
|
||||
Shade colors = getShade();
|
||||
|
||||
if (colors.size() > 0) {
|
||||
// We need two or more colors to create a shading remap. In
|
||||
// other case, the ShadingInkProcessing will use the full
|
||||
// color palette.
|
||||
if (colors.size() > 1) {
|
||||
remap.reset(new doc::Remap(get_current_palette()->size()));
|
||||
|
||||
for (int i=0; i<remap->size(); ++i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user