Keep source flags when creating padded texture.

This commit is contained in:
Relintai 2024-03-09 08:11:08 +01:00
parent bfbe04e78c
commit 068c83f71d

View File

@ -5693,6 +5693,7 @@ Ref<ImageTexture> LayeredTileSetAtlasSource::_create_padded_image_texture(const
if (src_image.is_null()) { if (src_image.is_null()) {
Ref<ImageTexture> ret; Ref<ImageTexture> ret;
ret.instance(); ret.instance();
ret->set_flags(p_source->get_flags());
return ret; return ret;
} }
@ -5733,7 +5734,7 @@ Ref<ImageTexture> LayeredTileSetAtlasSource::_create_padded_image_texture(const
Ref<ImageTexture> tex; Ref<ImageTexture> tex;
tex.instance(); tex.instance();
tex->create_from_image(image); tex->create_from_image(image, p_source->get_flags());
return tex; return tex;
} }