From ad4b377bc8c8269c50bfbe3d37f267670ba828e7 Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sat, 10 Jul 2021 05:19:09 +0300 Subject: [PATCH] Only click the layer button with the left mouse button --- src/UI/Timeline/LayerButton.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UI/Timeline/LayerButton.gd b/src/UI/Timeline/LayerButton.gd index 1a010b5c2..e2732610a 100644 --- a/src/UI/Timeline/LayerButton.gd +++ b/src/UI/Timeline/LayerButton.gd @@ -48,7 +48,7 @@ func _input(event : InputEvent) -> void: func _on_LayerContainer_gui_input(event : InputEvent) -> void: 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() var prev_curr_layer : int = project.current_layer if Input.is_action_pressed("shift"):