Merge pull request #1487 from AThousandShips/arg_default_fix

Fix generating default values for `StringName`
pull/1488/head
David Snopek 2024-06-13 13:49:54 -05:00 committed by GitHub
commit 6c4064125b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -2573,6 +2573,8 @@ def correct_default_value(value, type_name):
return f"{type_name}()"
if value.startswith("Array["):
return f"{{}}"
if value.startswith("&"):
return value[1::]
return value