Tree-Auswahl: content_tree.get_root() statt .root — Godot 4.7 hat kein root-Property (Karte t_f6f29d86)

Desktop-Smoke zeigte SCRIPT ERROR "Invalid access to property or key
root on a base object of type Tree" bei jeder Auswahl-Markierung im
Baum — die Baum-Mitmarkierung lief nie. Empirisch belegt: Tree hat in
Godot 4.7 nur get_root(), kein root-Property.
This commit is contained in:
Hermes godot-vr 2026-10-15 15:37:24 +00:00
parent 0eae5f56ad
commit 423b223454

View file

@ -1312,7 +1312,7 @@ func _on_tree_selected() -> void:
## Auswahl (aus dem Viewport) im Baum mitmarkieren.
func _mark_tree_selection(idx: int) -> void:
_tree_select_lock = true
_mark_tree_selection_walk(content_tree.root, idx)
_mark_tree_selection_walk(content_tree.get_root(), idx)
_tree_select_lock = false