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:
parent
74273d5b59
commit
d84c2dd6f3
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue