From 8ca0e12b90eaf4dceb521712b23b930e9d2106c6 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Wed, 6 Dec 2023 04:16:53 +0200 Subject: [PATCH] Attempt to fix the "add layer" button not working when pressed --- src/UI/Timeline/AnimationTimeline.gd | 2 +- src/UI/Timeline/AnimationTimeline.tscn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UI/Timeline/AnimationTimeline.gd b/src/UI/Timeline/AnimationTimeline.gd index 823cb80cd..620cbeffd 100644 --- a/src/UI/Timeline/AnimationTimeline.gd +++ b/src/UI/Timeline/AnimationTimeline.gd @@ -712,7 +712,7 @@ func _on_FuturePlacement_item_selected(index: int) -> void: # Layer buttons -func add_layer(type: int) -> void: +func add_layer(type := 0) -> void: var project := Global.current_project var current_layer := project.layers[project.current_layer] var l: BaseLayer diff --git a/src/UI/Timeline/AnimationTimeline.tscn b/src/UI/Timeline/AnimationTimeline.tscn index d865b5aee..ffc44035d 100644 --- a/src/UI/Timeline/AnimationTimeline.tscn +++ b/src/UI/Timeline/AnimationTimeline.tscn @@ -950,7 +950,7 @@ color = Color(0, 0.741176, 1, 0.501961) [node name="PasteTagPopup" type="PopupMenu" parent="."] script = ExtResource("12") -[connection signal="pressed" from="TimelineContainer/TimelineButtons/LayerTools/LayerSettingsContainer/LayerButtons/AddLayer" to="." method="add_layer" binds= [0]] +[connection signal="pressed" from="TimelineContainer/TimelineButtons/LayerTools/LayerSettingsContainer/LayerButtons/AddLayer" to="." method="add_layer"] [connection signal="pressed" from="TimelineContainer/TimelineButtons/LayerTools/LayerSettingsContainer/LayerButtons/RemoveLayer" to="." method="_on_RemoveLayer_pressed"] [connection signal="pressed" from="TimelineContainer/TimelineButtons/LayerTools/LayerSettingsContainer/LayerButtons/MoveUpLayer" to="." method="change_layer_order" binds= [true]] [connection signal="pressed" from="TimelineContainer/TimelineButtons/LayerTools/LayerSettingsContainer/LayerButtons/MoveDownLayer" to="." method="change_layer_order" binds= [false]]