fix: string repeat() instead of * operator in GDScript

This commit is contained in:
2026-06-22 20:27:26 -04:00
parent b1aec93fd5
commit a1f48d9ef0
+1 -1
View File
@@ -60,7 +60,7 @@ func load_model(path: String) -> void:
print("SkinnedPlayerModel: WARNING - no AnimationPlayer found in scene tree") print("SkinnedPlayerModel: WARNING - no AnimationPlayer found in scene tree")
func _print_tree(node: Node, depth: int) -> void: func _print_tree(node: Node, depth: int) -> void:
var indent = " " * depth var indent = " ".repeat(depth)
print("%s%s (%s)" % [indent, node.name, node.get_class()]) print("%s%s (%s)" % [indent, node.name, node.get_class()])
for child in node.get_children(): for child in node.get_children():
_print_tree(child, depth + 1) _print_tree(child, depth + 1)