Исправление. Указатель ряда мог принадлежать удалённому элементу
This commit is contained in:
@@ -326,7 +326,9 @@ func _set_row_selected(i_row: int, selected: bool = true) -> void:
|
||||
var selector = nodes[selector_key]
|
||||
nodes.erase(selector_key)
|
||||
if is_instance_valid(selector):
|
||||
node.remove_child(selector)
|
||||
var prnt = selector.get_parent_control()
|
||||
if prnt:
|
||||
prnt.remove_child(selector)
|
||||
selector.queue_free()
|
||||
else:
|
||||
push_warning('обращение к удалённому элементу \"%s\"' % selector_key)
|
||||
|
||||
Reference in New Issue
Block a user