Remove unecessary check.

This commit is contained in:
Relintai 2022-06-21 16:22:41 +02:00
parent 328af63ad1
commit 1ef976c007

View File

@ -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);
}