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

Clone layer is now functional

This commit is contained in:
OverloadedOrama 2020-02-29 01:31:16 +02:00
parent 0945a558d2
commit 6557d3aeac

View file

@ -145,7 +145,7 @@ func _on_BlueRedMode_toggled(button_pressed) -> void:
func add_layer(is_new := true) -> void: func add_layer(is_new := true) -> void:
var layer_name = null var layer_name = null
if !is_new: # clone layer if !is_new: # clone layer
layer_name = Global.layers[Global.current_layer][1] + " (" + tr("copy") + ")" layer_name = Global.layers[Global.current_layer][0] + " (" + tr("copy") + ")"
var new_layers : Array = Global.layers.duplicate() var new_layers : Array = Global.layers.duplicate()