From 6495f10cdd117329c93818d06144a69e89d1e1fc Mon Sep 17 00:00:00 2001 From: MrStevns Date: Thu, 22 Aug 2024 17:39:11 +0200 Subject: [PATCH] Remove check that already exist in onion skin sub painter --- core_lib/src/canvaspainter.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/core_lib/src/canvaspainter.cpp b/core_lib/src/canvaspainter.cpp index d1b950fb1..9b796f93e 100644 --- a/core_lib/src/canvaspainter.cpp +++ b/core_lib/src/canvaspainter.cpp @@ -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); }