You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Merge pull request #58367 from V-Sekai/tileset_atlas_crash_fix
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user