Fix generating default values for `StringName`
Cases other than `&""` were not processed correctly
(cherry picked from commit 6cd6c8923a
)
pull/1492/head
parent
246fd4718c
commit
a6e5caacf8
|
@ -2442,6 +2442,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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue