Skip to content

Commit ee9acbc

Browse files
authored
Merge pull request #1488 from AThousandShips/default_node_path
Add default argument processing for `NodePath`
2 parents 64f1bc8 + 37e7a6d commit ee9acbc

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
@@ -2567,6 +2567,7 @@ def correct_default_value(value, type_name):
25672567
"null": "nullptr",
25682568
'""': "String()",
25692569
'&""': "StringName()",
2570+
'^""': "NodePath()",
25702571
"[]": "Array()",
25712572
"{}": "Dictionary()",
25722573
"Transform2D(1, 0, 0, 1, 0, 0)": "Transform2D()", # Default transform.
@@ -2580,6 +2581,8 @@ def correct_default_value(value, type_name):
25802581
return f"{{}}"
25812582
if value.startswith("&"):
25822583
return value[1::]
2584+
if value.startswith("^"):
2585+
return value[1::]
25832586
return value
25842587

25852588

0 commit comments

Comments
 (0)