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

Fix issue with gizmos not working if the user has moved the selection with contents first

This commit is contained in:
Manolis Papadeas 2021-05-03 02:08:53 +03:00
parent 8f1c6bb3d3
commit 3ad3697c84

View file

@ -101,9 +101,9 @@ func _input(event : InputEvent) -> void:
Global.has_focus = false
mouse_pos_on_gizmo_drag = Global.canvas.current_pixel
dragged_gizmo = gizmo
temp_bitmap = Global.current_project.selection_bitmap
if !is_moving_content:
temp_rect = big_bounding_rectangle
temp_bitmap = Global.current_project.selection_bitmap
transform_content_start()
Global.current_project.selection_offset = Vector2.ZERO
if gizmo.type == Gizmo.Type.ROTATE: