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:
parent
a0868aa4a9
commit
8ca0e12b90
|
@ -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
|
||||
|
|
|
@ -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]]
|
||||
|
|
Loading…
Reference in a new issue