diff options
| author | Juan Linietsky | 2014-02-19 11:57:14 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-02-19 11:57:14 -0300 |
| commit | d7d65fa2f2b51d03f7bdfcbceedca99188ce979c (patch) | |
| tree | fecdf1bfa39ba5a4895b4dbf340a3b68098c109a /scene/2d/sprite.cpp | |
| parent | 8c1731b67995add31361ae526b0e6af76346181e (diff) | |
| download | godot-d7d65fa2f2b51d03f7bdfcbceedca99188ce979c.tar.gz godot-d7d65fa2f2b51d03f7bdfcbceedca99188ce979c.tar.zst godot-d7d65fa2f2b51d03f7bdfcbceedca99188ce979c.zip | |
Diffstat (limited to 'scene/2d/sprite.cpp')
| -rw-r--r-- | scene/2d/sprite.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/sprite.cpp b/scene/2d/sprite.cpp index 0265ec4df..ad9a76ee3 100644 --- a/scene/2d/sprite.cpp +++ b/scene/2d/sprite.cpp @@ -105,7 +105,7 @@ void Sprite::set_texture(const Ref<Texture>& p_texture) { } texture=p_texture; if (texture.is_valid()) { - texture->set_flags(texture->get_flags()&(~Texture::FLAG_REPEAT)); //remove repeat from texture, it looks bad in sprites + texture->set_flags(texture->get_flags()); //remove repeat from texture, it looks bad in sprites texture->connect(CoreStringNames::get_singleton()->changed,this,SceneStringNames::get_singleton()->update); } update(); |
