mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Fix issue where you could move selection gizmos when an overlay window is opened
This commit is contained in:
parent
a9692ca859
commit
f2a4af9c1f
|
@ -74,6 +74,8 @@ func _ready() -> void:
|
||||||
|
|
||||||
|
|
||||||
func _input(event: InputEvent) -> void:
|
func _input(event: InputEvent) -> void:
|
||||||
|
if not Global.can_draw:
|
||||||
|
return
|
||||||
if is_moving_content:
|
if is_moving_content:
|
||||||
if Input.is_action_just_pressed("transformation_confirm"):
|
if Input.is_action_just_pressed("transformation_confirm"):
|
||||||
transform_content_confirm()
|
transform_content_confirm()
|
||||||
|
@ -83,7 +85,7 @@ func _input(event: InputEvent) -> void:
|
||||||
var project: Project = Global.current_project
|
var project: Project = Global.current_project
|
||||||
if not project.layers[project.current_layer].can_layer_get_drawn():
|
if not project.layers[project.current_layer].can_layer_get_drawn():
|
||||||
return
|
return
|
||||||
if event is InputEventKey and Global.can_draw:
|
if event is InputEventKey:
|
||||||
_move_with_arrow_keys(event)
|
_move_with_arrow_keys(event)
|
||||||
|
|
||||||
if not event is InputEventMouse:
|
if not event is InputEventMouse:
|
||||||
|
|
Loading…
Reference in a new issue