mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-12 07:13:23 +00:00
Fix Magic Wand should "refer to visible layers" anyway when the active layer is hidden (fix #3939)
This commit is contained in:
parent
a2e3ab44bd
commit
ab2d7f79a3
@ -829,11 +829,15 @@ tools::ToolLoop* create_tool_loop(
|
||||
return nullptr;
|
||||
}
|
||||
else if (!layer->isVisibleHierarchy()) {
|
||||
StatusBar::instance()->showTip(
|
||||
1000,
|
||||
fmt::format(Strings::statusbar_tips_layer_x_is_hidden(),
|
||||
layer->name()));
|
||||
return nullptr;
|
||||
auto& toolPref = Preferences::instance().tool(params.tool);
|
||||
if (toolPref.floodfill.referTo() ==
|
||||
app::gen::FillReferTo::ACTIVE_LAYER) {
|
||||
StatusBar::instance()->showTip(
|
||||
1000,
|
||||
fmt::format(Strings::statusbar_tips_layer_x_is_hidden(),
|
||||
layer->name()));
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
// If the active layer is read-only.
|
||||
else if (layer_is_locked(editor)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user