mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
-fixed old condition in TextureFrame that caused bugs in materials, closes #1742
This commit is contained in:
parent
bf53b7789a
commit
c45ffc2ca9
2 changed files with 2 additions and 3 deletions
|
|
@ -88,8 +88,8 @@ void TextureFrame::set_texture(const Ref<Texture>& p_tex) {
|
|||
|
||||
texture=p_tex;
|
||||
update();
|
||||
if (texture.is_valid())
|
||||
texture->set_flags(texture->get_flags()&(~Texture::FLAG_REPEAT)); //remove repeat from texture, it looks bad in sprites
|
||||
//if (texture.is_valid())
|
||||
// texture->set_flags(texture->get_flags()&(~Texture::FLAG_REPEAT)); //remove repeat from texture, it looks bad in sprites
|
||||
minimum_size_changed();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue