mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-03-12 22:35:18 +00:00
Fix gizmos being able to get edited when there is no selection
This commit is contained in:
parent
dca76afe17
commit
b420bebb3e
1 changed files with 5 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue