From 068c83f71d71f4e68f9188c57385a6fc18e91892 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 9 Mar 2024 08:11:08 +0100 Subject: [PATCH] Keep source flags when creating padded texture. --- modules/layered_tile_map/layered_tile_set.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/layered_tile_map/layered_tile_set.cpp b/modules/layered_tile_map/layered_tile_set.cpp index 7643ef16b..8e1b544dc 100644 --- a/modules/layered_tile_map/layered_tile_set.cpp +++ b/modules/layered_tile_map/layered_tile_set.cpp @@ -5693,6 +5693,7 @@ Ref LayeredTileSetAtlasSource::_create_padded_image_texture(const if (src_image.is_null()) { Ref ret; ret.instance(); + ret->set_flags(p_source->get_flags()); return ret; } @@ -5733,7 +5734,7 @@ Ref LayeredTileSetAtlasSource::_create_padded_image_texture(const Ref tex; tex.instance(); - tex->create_from_image(image); + tex->create_from_image(image, p_source->get_flags()); return tex; }