Skip to content

Commit

Permalink
Remove check that already exist in onion skin sub painter
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStevns committed Aug 22, 2024
1 parent cc486f0 commit 6495f10
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core_lib/src/canvaspainter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ void CanvasPainter::paintOnionSkin(QPainter& painter, const QRect& blitRect)
} else {
for (int i = 0; i < mObject->getLayerCount(); i++) {
Layer* layer = mObject->getLayer(i);

if (layer == nullptr) { continue; }
if (!layer->visible()) { continue; }

paintOnionSkinOnLayer(painter, blitRect, layer);
}
Expand Down

0 comments on commit 6495f10

Please sign in to comment.