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:
parent
0eae5f56ad
commit
423b223454
1 changed files with 1 additions and 1 deletions
|
|
@ -1312,7 +1312,7 @@ func _on_tree_selected() -> void:
|
||||||
## Auswahl (aus dem Viewport) im Baum mitmarkieren.
|
## Auswahl (aus dem Viewport) im Baum mitmarkieren.
|
||||||
func _mark_tree_selection(idx: int) -> void:
|
func _mark_tree_selection(idx: int) -> void:
|
||||||
_tree_select_lock = true
|
_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
|
_tree_select_lock = false
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue