Fix generating default values for `StringName`
Cases other than `&""` were not processed correctlypull/1487/head
parent
c5986e666f
commit
6cd6c8923a
|
@ -2569,6 +2569,8 @@ def correct_default_value(value, type_name):
|
||||||
return f"{type_name}()"
|
return f"{type_name}()"
|
||||||
if value.startswith("Array["):
|
if value.startswith("Array["):
|
||||||
return f"{{}}"
|
return f"{{}}"
|
||||||
|
if value.startswith("&"):
|
||||||
|
return value[1::]
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue