diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp index 1e84947b872..11741170281 100644 --- a/scene/resources/tile_set.cpp +++ b/scene/resources/tile_set.cpp @@ -4432,6 +4432,10 @@ void TileSetAtlasSource::_update_padded_texture() { Ref src = texture->get_image(); + if (!src.is_valid()) { + return; + } + Ref image; image.instantiate(); image->create(size.x, size.y, false, src->get_format());