mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-01 05:48:37 +03:00
Merge pull request #1214 from dsnopek/ptrtoarg-native-struct
Ensure that PtrToArg specializations for native structs are used
This commit is contained in:
@@ -1179,6 +1179,12 @@ def generate_engine_classes_bindings(api, output_dir, use_template_get_node):
|
||||
else:
|
||||
fully_used_classes.add("Wrapped")
|
||||
|
||||
# In order to ensure that PtrToArg specializations for native structs are
|
||||
# always used, let's move any of them into 'fully_used_classes'.
|
||||
for type_name in used_classes:
|
||||
if is_struct_type(type_name) and not is_included_struct_type(type_name):
|
||||
fully_used_classes.add(type_name)
|
||||
|
||||
for type_name in fully_used_classes:
|
||||
if type_name in used_classes:
|
||||
used_classes.remove(type_name)
|
||||
|
||||
Reference in New Issue
Block a user