From a6e5caacf83486b0df48568895ed8e7ce8547126 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 (cherry picked from commit 6cd6c8923a6e623776502a9245f48cfc5c5baf50) --- binding_generator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/binding_generator.py b/binding_generator.py index 3a4de97..cc5e6f3 100644 --- a/binding_generator.py +++ b/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