mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-24 16:34:24 +01:00
Also add null check.
This commit is contained in:
parent
1f2e2c1d45
commit
94da7051d4
@ -150,6 +150,8 @@ void PaintCanvas::resize(int width, int height) {
|
||||
}
|
||||
|
||||
void PaintCanvas::resize_image(Ref<Image> image) {
|
||||
ERR_FAIL_COND(!image.is_valid());
|
||||
|
||||
PoolColorArray pixel_colors;
|
||||
int prev_width = image->get_size().x;
|
||||
int prev_height = image->get_size().y;
|
||||
|
Loading…
Reference in New Issue
Block a user