mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Only click the layer button with the left mouse button
This commit is contained in:
parent
983d14c0d1
commit
ad4b377bc8
|
@ -48,7 +48,7 @@ func _input(event : InputEvent) -> void:
|
||||||
func _on_LayerContainer_gui_input(event : InputEvent) -> void:
|
func _on_LayerContainer_gui_input(event : InputEvent) -> void:
|
||||||
var project := Global.current_project
|
var project := Global.current_project
|
||||||
|
|
||||||
if event is InputEventMouseButton:
|
if event is InputEventMouseButton and event.button_index == BUTTON_LEFT:
|
||||||
Global.canvas.selection.transform_content_confirm()
|
Global.canvas.selection.transform_content_confirm()
|
||||||
var prev_curr_layer : int = project.current_layer
|
var prev_curr_layer : int = project.current_layer
|
||||||
if Input.is_action_pressed("shift"):
|
if Input.is_action_pressed("shift"):
|
||||||
|
|
Loading…
Reference in a new issue