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

Attempt to fix the "add layer" button not working when pressed

This commit is contained in:
Emmanouil Papadeas 2023-12-06 04:16:53 +02:00
parent a0868aa4a9
commit 8ca0e12b90
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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]]