Merge pull request #58367 from V-Sekai/tileset_atlas_crash_fix

This commit is contained in:
Rémi Verschelde 2022-02-21 11:18:00 +01:00 committed by GitHub
commit ac1a55bc63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4432,6 +4432,10 @@ void TileSetAtlasSource::_update_padded_texture() {
Ref<Image> src = texture->get_image();
if (!src.is_valid()) {
return;
}
Ref<Image> image;
image.instantiate();
image->create(size.x, size.y, false, src->get_format());