1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 15:39:49 +00:00

flip corrected for BrushButton (x, y was reversed)

This commit is contained in:
RorotoSic 2024-03-02 18:40:46 +01:00
parent c7fdc9a32e
commit 10db8f875f

View file

@ -31,7 +31,7 @@ func _on_BrushButton_mouse_exited() -> void:
$DeleteButton.visible = false $DeleteButton.visible = false
func _flip_rotate_updated(flip_x: bool, flip_y: bool, rotate_90: bool, rotate_180: bool,rotate_270: bool): func _flip_rotate_updated(flip_x: bool, flip_y: bool, rotate_90: bool, rotate_180: bool,rotate_270: bool):
$BrushTexture.set_flip_v(flip_x) $BrushTexture.set_flip_h(flip_x)
$BrushTexture.set_flip_v(flip_y) $BrushTexture.set_flip_v(flip_y)
var _rotation = 0 var _rotation = 0
if rotate_90 ==true : _rotation += 90 if rotate_90 ==true : _rotation += 90