Explorar o código

Fix generating default values for `StringName`

Cases other than `&""` were not processed correctly
A Thousand Ships hai 1 ano
pai
achega
6cd6c8923a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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