From 6cd6c8923a6e623776502a9245f48cfc5c5baf50 Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Thu, 13 Jun 2024 16:57:23 +0200 Subject: [PATCH] Fix generating default values for `StringName` Cases other than `&""` were not processed correctly --- binding_generator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/binding_generator.py b/binding_generator.py index 71d9e6b..3bd260c 100644 --- a/binding_generator.py +++ b/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