Skip to content

Commit 6c40641

Browse files
authored
Merge pull request #1487 from AThousandShips/arg_default_fix
Fix generating default values for `StringName`
2 parents 9f6fe36 + 6cd6c89 commit 6c40641

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

binding_generator.py

+2
Original file line numberDiff line numberDiff line change
@@ -2573,6 +2573,8 @@ def correct_default_value(value, type_name):
25732573
return f"{type_name}()"
25742574
if value.startswith("Array["):
25752575
return f"{{}}"
2576+
if value.startswith("&"):
2577+
return value[1::]
25762578
return value
25772579

25782580

0 commit comments

Comments
 (0)