Browse Source

Fix generating default values for `StringName`

Cases other than `&""` were not processed correctly
A Thousand Ships 1 year ago
parent
commit
6cd6c8923a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      binding_generator.py

+ 2 - 0
binding_generator.py

@@ -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