From eb77d05cc3643892c5a3fd2426a3db4bbe3b2d14 Mon Sep 17 00:00:00 2001 From: RorotoSic <70805756+RorotoSic@users.noreply.github.com> Date: Sat, 2 Mar 2024 19:32:07 +0100 Subject: [PATCH] github static checks 2 --- src/UI/Buttons/BrushButton.gd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/UI/Buttons/BrushButton.gd b/src/UI/Buttons/BrushButton.gd index a81f0a4b9..93a23ee7d 100644 --- a/src/UI/Buttons/BrushButton.gd +++ b/src/UI/Buttons/BrushButton.gd @@ -37,11 +37,11 @@ func _flip_rotate_updated( ): $BrushTexture.set_flip_h(flip_x) $BrushTexture.set_flip_v(flip_y) - var _rotation = 0 + var _rotation_BrushTexture = 0 if rotate_90 == true: - _rotation += 90 + _rotation_BrushTexture += 90 if rotate_180 == true: - _rotation += 180 + _rotation_BrushTexture += 180 if rotate_270 == true: - _rotation += 270 - $BrushTexture.rotation_degrees = _rotation + _rotation_BrushTexture += 270 + $BrushTexture.rotation_degrees = _rotation_BrushTexture