1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Fixed rotation gixmo (#977)

This commit is contained in:
Variable 2024-01-20 05:07:02 +05:00 committed by GitHub
parent 426e350a6d
commit 8fb29f13f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -310,7 +310,7 @@ func _on_Indicator_gui_input(event: InputEvent) -> void:
drag_pivot = false
if drag_pivot:
var img_size := preview_image.get_size()
var mouse_pos := get_local_mouse_position() - pivot_indicator.rect_position
var mouse_pos := pivot_indicator.get_local_mouse_position()
var ratio := img_size / pivot_indicator.rect_size
# we need to set the scale according to the larger side
var conversion_scale: float