From c37295ef3bc3423ab598d695784bc9aab4f4e755 Mon Sep 17 00:00:00 2001 From: RorotoSic <70805756+RorotoSic@users.noreply.github.com> Date: Sat, 2 Mar 2024 19:54:27 +0100 Subject: [PATCH] var brush_texture_rotation --- 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 403e700cf..49cfa6a1b 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_BrushTexture = 0 + var brush_texture_rotation = 0 if rotate_90 == true: - rotation_BrushTexture += 90 + brush_texture_rotation += 90 if rotate_180 == true: - rotation_BrushTexture += 180 + brush_texture_rotation += 180 if rotate_270 == true: - rotation_BrushTexture += 270 - $BrushTexture.rotation_degrees = rotation_BrushTexture + brush_texture_rotation += 270 + $BrushTexture.rotation_degrees = brush_texture_rotation