mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-07 10:59:49 +00:00
Fix null instance error causing a crash on startup, originating from #974
This commit is contained in:
parent
909f38bd0c
commit
b3fa8870f8
|
@ -132,6 +132,7 @@ func _on_reference_image_changed(index: int) -> void:
|
|||
# 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
|
||||
# becomes selected instead of the clicked button
|
||||
if index + 1 < list.get_child_count():
|
||||
list.get_child(index + 1).set_pressed_no_signal(true)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue