1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-03-13 06:45:17 +00:00

Fix gizmos being able to get edited when there is no selection

This commit is contained in:
Manolis Papadeas 2021-04-21 17:35:37 +03:00
parent dca76afe17
commit b420bebb3e

View file

@ -82,10 +82,11 @@ func _input(event : InputEvent) -> void:
move_content_cancel()
elif event is InputEventMouse:
var gizmo : Gizmo
for g in gizmos:
if g.rect.has_point(Global.canvas.current_pixel):
gizmo = g
break
if big_bounding_rectangle.size != Vector2.ZERO:
for g in gizmos:
if g.rect.has_point(Global.canvas.current_pixel):
gizmo = g
break
if gizmo:
Global.main_viewport.mouse_default_cursor_shape = gizmo.get_cursor()
elif !dragged_gizmo: