Skip to content

Commit

Permalink
Add support for PackedVector4Array
Browse files Browse the repository at this point in the history
  • Loading branch information
dsnopek committed May 6, 2024
1 parent 54fe2f9 commit 9c324bc
Show file tree
Hide file tree
Showing 6 changed files with 481 additions and 27 deletions.
3 changes: 3 additions & 0 deletions binding_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,8 @@ def generate_builtin_class_header(builtin_api, size, used_classes, fully_used_cl
result.append("#include <godot_cpp/variant/vector2.hpp>")
if class_name == "PackedVector3Array":
result.append("#include <godot_cpp/variant/vector3.hpp>")
if class_name == "PackedVector4Array":
result.append("#include <godot_cpp/variant/vector4.hpp>")

if is_packed_array(class_name):
result.append("#include <godot_cpp/core/error_macros.hpp>")
Expand Down Expand Up @@ -2445,6 +2447,7 @@ def is_packed_array(type_name):
"PackedStringArray",
"PackedVector2Array",
"PackedVector3Array",
"PackedVector4Array",
]


Expand Down
Loading

0 comments on commit 9c324bc

Please sign in to comment.