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:
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()
|
move_content_cancel()
|
||||||
elif event is InputEventMouse:
|
elif event is InputEventMouse:
|
||||||
var gizmo : Gizmo
|
var gizmo : Gizmo
|
||||||
for g in gizmos:
|
if big_bounding_rectangle.size != Vector2.ZERO:
|
||||||
if g.rect.has_point(Global.canvas.current_pixel):
|
for g in gizmos:
|
||||||
gizmo = g
|
if g.rect.has_point(Global.canvas.current_pixel):
|
||||||
break
|
gizmo = g
|
||||||
|
break
|
||||||
if gizmo:
|
if gizmo:
|
||||||
Global.main_viewport.mouse_default_cursor_shape = gizmo.get_cursor()
|
Global.main_viewport.mouse_default_cursor_shape = gizmo.get_cursor()
|
||||||
elif !dragged_gizmo:
|
elif !dragged_gizmo:
|
||||||
|
|
Loading…
Add table
Reference in a new issue