1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-20 12:33:14 +00:00

Fix crash when deleting a layer that is being renamed

This commit is contained in:
Emmanouil Papadeas 2023-11-22 15:18:55 +02:00
parent 74273d5b59
commit d84c2dd6f3

View file

@ -141,7 +141,8 @@ func _save_layer_name(new_name: String) -> void:
line_edit.visible = false
line_edit.editable = false
label.text = new_name
Global.current_project.layers[layer].name = new_name
if layer < Global.current_project.layers.size():
Global.current_project.layers[layer].name = new_name
func _on_ExpandButton_pressed() -> void: