mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 21:14:42 -04:00
Fix layer name change
Name change is now saved only if the user presses Enter
This commit is contained in:
parent
60aed9efba
commit
0945a558d2
3 changed files with 6 additions and 6 deletions
|
@ -537,8 +537,10 @@ func layers_changed(value : Array) -> void:
|
|||
|
||||
for i in range(layers.size() - 1, -1, -1):
|
||||
var layer_container = load("res://Prefabs/LayerContainer.tscn").instance()
|
||||
layers[i][0] = tr("Layer") + " %s" % i
|
||||
layer_container.i = i
|
||||
if !layers[i][0]:
|
||||
layers[i][0] = tr("Layer") + " %s" % i
|
||||
|
||||
layer_container.get_child(0).get_child(1).text = layers[i][0]
|
||||
layer_container.get_child(0).get_child(2).text = layers[i][0]
|
||||
layers_container.add_child(layer_container)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue