mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-24 18:17:21 +01:00
Remove unecessary check.
This commit is contained in:
parent
328af63ad1
commit
1ef976c007
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user