1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 09:39:48 +00:00

var brush_texture_rotation

This commit is contained in:
RorotoSic 2024-03-02 19:54:27 +01:00
parent 39e3e7e38d
commit c37295ef3b

View file

@ -37,11 +37,11 @@ func _flip_rotate_updated(
): ):
$BrushTexture.set_flip_h(flip_x) $BrushTexture.set_flip_h(flip_x)
$BrushTexture.set_flip_v(flip_y) $BrushTexture.set_flip_v(flip_y)
var rotation_BrushTexture = 0 var brush_texture_rotation = 0
if rotate_90 == true: if rotate_90 == true:
rotation_BrushTexture += 90 brush_texture_rotation += 90
if rotate_180 == true: if rotate_180 == true:
rotation_BrushTexture += 180 brush_texture_rotation += 180
if rotate_270 == true: if rotate_270 == true:
rotation_BrushTexture += 270 brush_texture_rotation += 270
$BrushTexture.rotation_degrees = rotation_BrushTexture $BrushTexture.rotation_degrees = brush_texture_rotation