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

Fix null instance error causing a crash on startup, originating from #974

This commit is contained in:
Emmanouil Papadeas 2024-02-14 20:58:21 +02:00
parent 909f38bd0c
commit b3fa8870f8

View file

@ -132,7 +132,8 @@ func _on_reference_image_changed(index: int) -> void:
# NOTE: using list_btn_group.get_buttons()[index + 1] here was causing a bug that # NOTE: using list_btn_group.get_buttons()[index + 1] here was causing a bug that
# if you re-arrange by drag and drop, then click on a button, then button before it # if you re-arrange by drag and drop, then click on a button, then button before it
# becomes selected instead of the clicked button # becomes selected instead of the clicked button
list.get_child(index + 1).set_pressed_no_signal(true) if index + 1 < list.get_child_count():
list.get_child(index + 1).set_pressed_no_signal(true)
func project_changed() -> void: func project_changed() -> void: