fix: string repeat() instead of * operator in GDScript
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user