fix(tools:gltf_auto_export): fixed issue with subcollections not being exported for blueprints (#25)

This commit is contained in:
Mark Moissette 2023-10-14 14:21:16 +02:00 committed by GitHub
parent bce6d43c50
commit 5683f01cea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ bl_info = {
"name": "gltf_auto_export", "name": "gltf_auto_export",
"author": "kaosigh", "author": "kaosigh",
"version": (0, 2), "version": (0, 2),
"blender": (3, 4, 0), "blender": (3, 4, 1),
"location": "File > Import-Export", "location": "File > Import-Export",
"description": "glTF/glb auto-export", "description": "glTF/glb auto-export",
"warning": "", "warning": "",
@ -328,7 +328,7 @@ def export_collections(scene, folder_path, addon_prefs, gltf_export_preferences)
gltf_output_path = os.path.join(folder_path, collection_name) gltf_output_path = os.path.join(folder_path, collection_name)
export_settings = { **gltf_export_preferences, 'use_active_scene': True, 'use_active_collection': True} #'use_visible': False, export_settings = { **gltf_export_preferences, 'use_active_scene': True, 'use_active_collection': True, 'use_active_collection_with_nested':True} #'use_visible': False,
export_gltf(gltf_output_path, export_settings) export_gltf(gltf_output_path, export_settings)
# reset active collection to the one we save before # reset active collection to the one we save before