Ignore hidden layers in ShaderRenderer

This commit is contained in:
David Capello 2022-09-20 19:33:37 -03:00
parent 8c7b94a934
commit 3dbf88c9cd

View File

@ -177,6 +177,10 @@ void ShaderRenderer::drawLayerGroup(SkCanvas* canvas,
const gfx::ClipF& area)
{
for (auto layer : group->layers()) {
// Ignore hidden layers
if (!layer->isVisible())
continue;
switch (layer->type()) {
case doc::ObjectType::LayerImage: {