From 1ef976c0076f41e34a359883582fe3a634bf29d7 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 21 Jun 2022 16:22:41 +0200 Subject: [PATCH] Remove unecessary check. --- modules/paint/paint_canvas.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/paint/paint_canvas.cpp b/modules/paint/paint_canvas.cpp index 95541c1e0..169794d5b 100644 --- a/modules/paint/paint_canvas.cpp +++ b/modules/paint/paint_canvas.cpp @@ -418,10 +418,6 @@ Color PaintCanvas::get_preview_pixel_v(const Vector2i &pos) { } Color PaintCanvas::get_preview_pixel(const int x, const int y) { - if (!preview_layer.is_valid()) { - return Color(); - } - return preview_layer->get_pixel(x, y); }