소스 검색

Fix generating default values for `StringName`

Cases other than `&""` were not processed correctly

(cherry picked from commit 6cd6c8923a6e623776502a9245f48cfc5c5baf50)
A Thousand Ships 1 년 전
부모
커밋
a6e5caacf8
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      binding_generator.py

+ 2 - 0
binding_generator.py

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