mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-30 23:19: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,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
|
||||
# if you re-arrange by drag and drop, then click on a button, then button before it
|
||||
# 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:
|
||||
|
|
Loading…
Reference in a new issue