浏览代码

Fix binding when default parameter is a PoolByteArray.

Like done for the other pool array types.
Fabio Alessandrelli 4 年之前
父节点
当前提交
024ffef50f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      binding_generator.py

+ 1 - 1
binding_generator.py

@@ -294,7 +294,7 @@ def generate_class_header(used_classes, c, use_template_get_node):
                     return default_value.lower()
                     return default_value.lower()
                 if _type == "Array":
                 if _type == "Array":
                     return "Array()"
                     return "Array()"
-                if _type in ["PoolVector2Array", "PoolStringArray", "PoolVector3Array", "PoolColorArray", "PoolIntArray", "PoolRealArray"]:
+                if _type in ["PoolVector2Array", "PoolStringArray", "PoolVector3Array", "PoolColorArray", "PoolIntArray", "PoolRealArray", "PoolByteArray"]:
                     return _type + "()"
                     return _type + "()"
                 if _type == "Vector2":
                 if _type == "Vector2":
                     return "Vector2" + default_value
                     return "Vector2" + default_value