From 0083295a4d47e81d9462e1446383a3f07f5f3219 Mon Sep 17 00:00:00 2001 From: Mark Moissette Date: Wed, 7 Feb 2024 14:22:53 +0100 Subject: [PATCH] fix(gltf_auto_export): fixed nested collections export (#126) --- tools/gltf_auto_export/__init__.py | 2 +- tools/gltf_auto_export/helpers/helpers_scenes.py | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/gltf_auto_export/__init__.py b/tools/gltf_auto_export/__init__.py index b169c86..79895e9 100644 --- a/tools/gltf_auto_export/__init__.py +++ b/tools/gltf_auto_export/__init__.py @@ -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", diff --git a/tools/gltf_auto_export/helpers/helpers_scenes.py b/tools/gltf_auto_export/helpers/helpers_scenes.py index 81bde54..32b196c 100644 --- a/tools/gltf_auto_export/helpers/helpers_scenes.py +++ b/tools/gltf_auto_export/helpers/helpers_scenes.py @@ -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"]