Print an error early if VoxelGeneratorImage is given an image of unsupported format.
Otherwise it would spam-print while generating.master
parent
924d81f488
commit
fad9537303
|
@ -29,6 +29,9 @@ void VoxelGeneratorImage::set_image(Ref<Image> im) {
|
|||
if (im == _image) {
|
||||
return;
|
||||
}
|
||||
if (im.is_valid()) {
|
||||
ERR_FAIL_COND(im->is_compressed());
|
||||
}
|
||||
_image = im;
|
||||
Ref<Image> copy;
|
||||
if (im.is_valid()) {
|
||||
|
|
Loading…
Reference in New Issue