1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Only click the layer button with the left mouse button

This commit is contained in:
Manolis Papadeas 2021-07-10 05:19:09 +03:00
parent 983d14c0d1
commit ad4b377bc8

View file

@ -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"):