mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-20 02:46:53 +01:00
Keep source flags when creating padded texture.
This commit is contained in:
parent
bfbe04e78c
commit
068c83f71d
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user