Skip to content

Commit

Permalink
fix(gltf_auto_export): fixed nested collections export (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaosat-dev authored Feb 7, 2024
1 parent 0d708b8 commit 0083295
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/gltf_auto_export/__init__.py
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
9 changes: 8 additions & 1 deletion tools/gltf_auto_export/helpers/helpers_scenes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit 0083295

Please sign in to comment.