mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 08:46:09 +00:00
Ignore hidden layers in ShaderRenderer
This commit is contained in:
parent
8c7b94a934
commit
3dbf88c9cd
@ -177,6 +177,10 @@ void ShaderRenderer::drawLayerGroup(SkCanvas* canvas,
|
|||||||
const gfx::ClipF& area)
|
const gfx::ClipF& area)
|
||||||
{
|
{
|
||||||
for (auto layer : group->layers()) {
|
for (auto layer : group->layers()) {
|
||||||
|
// Ignore hidden layers
|
||||||
|
if (!layer->isVisible())
|
||||||
|
continue;
|
||||||
|
|
||||||
switch (layer->type()) {
|
switch (layer->type()) {
|
||||||
|
|
||||||
case doc::ObjectType::LayerImage: {
|
case doc::ObjectType::LayerImage: {
|
||||||
|
Loading…
Reference in New Issue
Block a user