From 423b223454fb4c1f7e9c3b552092b86f7849c638 Mon Sep 17 00:00:00 2001 From: Hermes godot-vr Date: Thu, 15 Oct 2026 15:37:24 +0000 Subject: [PATCH] =?UTF-8?q?Tree-Auswahl:=20content=5Ftree.get=5Froot()=20s?= =?UTF-8?q?tatt=20.root=20=E2=80=94=20Godot=204.7=20hat=20kein=20root-Prop?= =?UTF-8?q?erty=20(Karte=20t=5Ff6f29d86)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/ui/main.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/main.gd b/src/ui/main.gd index 6e38216..f5fc6c0 100644 --- a/src/ui/main.gd +++ b/src/ui/main.gd @@ -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