Skip to content

Commit 37e7a6d

Browse files
Add default argument processing for NodePath
1 parent 6c40641 commit 37e7a6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

binding_generator.py

+3
Original file line numberDiff line numberDiff line change
@@ -2562,6 +2562,7 @@ def correct_default_value(value, type_name):
25622562
"null": "nullptr",
25632563
'""': "String()",
25642564
'&""': "StringName()",
2565+
'^""': "NodePath()",
25652566
"[]": "Array()",
25662567
"{}": "Dictionary()",
25672568
"Transform2D(1, 0, 0, 1, 0, 0)": "Transform2D()", # Default transform.
@@ -2575,6 +2576,8 @@ def correct_default_value(value, type_name):
25752576
return f"{{}}"
25762577
if value.startswith("&"):
25772578
return value[1::]
2579+
if value.startswith("^"):
2580+
return value[1::]
25782581
return value
25792582

25802583

0 commit comments

Comments
 (0)