From 024ffef50f041a489c8a74e69a3a5e453e2ee3fb Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sat, 17 Jul 2021 18:06:50 +0200 Subject: [PATCH] Fix binding when default parameter is a PoolByteArray. Like done for the other pool array types. --- binding_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding_generator.py b/binding_generator.py index ba2ceead..1b612c2a 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -294,7 +294,7 @@ def generate_class_header(used_classes, c, use_template_get_node): return default_value.lower() if _type == "Array": return "Array()" - if _type in ["PoolVector2Array", "PoolStringArray", "PoolVector3Array", "PoolColorArray", "PoolIntArray", "PoolRealArray"]: + if _type in ["PoolVector2Array", "PoolStringArray", "PoolVector3Array", "PoolColorArray", "PoolIntArray", "PoolRealArray", "PoolByteArray"]: return _type + "()" if _type == "Vector2": return "Vector2" + default_value