fix(gltf_auto_export): fixed nested collections export (#126)

This commit is contained in:
Mark Moissette 2024-02-07 14:22:53 +01:00 committed by GitHub
parent 0d708b800e
commit 0083295a4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -1,7 +1,7 @@
bl_info = {
"name": "gltf_auto_export",
"author": "kaosigh",
"version": (0, 12, 0),
"version": (0, 12, 1),
"blender": (3, 4, 0),
"location": "File > Import-Export",
"description": "glTF/glb auto-export",

View File

@ -58,7 +58,14 @@ def copy_hollowed_collection_into(source_collection, destination_collection, par
if parent_empty is not None:
collection_placeholder.parent = parent_empty
nested_results = copy_hollowed_collection_into(collection, destination_collection, collection_placeholder, filter, collection_instances_combine_mode, library_collections)
nested_results = copy_hollowed_collection_into(
source_collection = collection,
destination_collection = destination_collection,
parent_empty = collection_placeholder,
filter = filter,
library_collections = library_collections,
addon_prefs=addon_prefs
)
sub_root_objects = nested_results["root_objects"]
sub_special_properties = nested_results["special_properties"]