Отлажен прд-в гд, осталась проблема "обращение к удалённому элементу", мониторинг температур

This commit is contained in:
TotMaxim
2025-11-11 14:39:39 +03:00
parent 15be378743
commit 85c02f3f6c
5 changed files with 37 additions and 36 deletions

View File

@@ -448,6 +448,7 @@ func remove_row(i_row: int):
if nodes.has(sel_key):
var selector = nodes[sel_key]
if selector == null: return
var prnt = selector.get_parent()
prnt.remove_child(selector)
selector.queue_free()
@@ -484,8 +485,11 @@ func next_index(indexes: Array) -> void:
func swap_nodes(nodes_copy, node_key_format, i0, i1) -> void:
var key0 = node_key_format % [i0.y, i0.x]
var key1 = node_key_format % [i1.y, i1.x]
nodes_copy[key1] = nodes[key0]
nodes_copy[key1].name = key1
if is_instance_valid(nodes[key0]):
nodes_copy[key1] = nodes[key0]
nodes_copy[key1].name = key1
else:
print_debug("Ошибка: нод ", key0, " был освобожден")
## Переназначает ключи в соответствии с размерами таблицы.