Исправление. Может вызвать обращение к несуществующему элементу

This commit is contained in:
sasha80
2026-03-11 08:22:30 +03:00
parent d14d1724af
commit 398ff23291

View File

@@ -333,7 +333,7 @@ func _set_row_selected(i_row: int, selected: bool = true) -> void:
push_warning('обращение к удалённому элементу \"%s\"' % selector_key)
elif (not nodes.has(selector_key)) and selected:
var selector = ScnSelector.instantiate()
call_deferred('_set_selector_size', selector, i_row)
_set_selector_size(selector, i_row)
selector.modulate = selector_color_proc.call(i_row)
selector.z_index = z_index + 1
nodes[selector_key] = selector