mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-07 10:10:08 +03:00
Fix generating default values for StringName
Cases other than `&""` were not processed correctly
This commit is contained in:
@@ -2569,6 +2569,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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user