Style: Fix whole-line commented code
They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
This commit is contained in:
@ -121,8 +121,10 @@ void TextureRect::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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user