Skip to content

Commit 6cd6c89

Browse files
Fix generating default values for StringName
Cases other than `&""` were not processed correctly
1 parent c5986e6 commit 6cd6c89

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
@@ -2569,6 +2569,8 @@ def correct_default_value(value, type_name):
25692569
return f"{type_name}()"
25702570
if value.startswith("Array["):
25712571
return f"{{}}"
2572+
if value.startswith("&"):
2573+
return value[1::]
25722574
return value
25732575

25742576

0 commit comments

Comments
 (0)