Skip to content

Commit 72594d4

Browse files
Add default argument processing for NodePath
1 parent 6cd6c89 commit 72594d4

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
@@ -2558,6 +2558,7 @@ def correct_default_value(value, type_name):
25582558
"null": "nullptr",
25592559
'""': "String()",
25602560
'&""': "StringName()",
2561+
'^""': "NodePath()",
25612562
"[]": "Array()",
25622563
"{}": "Dictionary()",
25632564
"Transform2D(1, 0, 0, 1, 0, 0)": "Transform2D()", # Default transform.
@@ -2571,6 +2572,8 @@ def correct_default_value(value, type_name):
25712572
return f"{{}}"
25722573
if value.startswith("&"):
25732574
return value[1::]
2575+
if value.startswith("^"):
2576+
return value[1::]
25742577
return value
25752578

25762579

0 commit comments

Comments
 (0)