[Bf-extensions-cvs] [3f6734bd] master: glTF exporter: fix missing objects when instancing local nested collections
Julien Duroure
noreply at git.blender.org
Fri Apr 29 08:38:58 CEST 2022
Commit: 3f6734bdf2a86f5920fb3ed590c2467ae6bdbeea
Author: Julien Duroure
Date: Fri Apr 29 08:25:08 2022 +0200
Branches: master
https://developer.blender.org/rBA3f6734bdf2a86f5920fb3ed590c2467ae6bdbeea
glTF exporter: fix missing objects when instancing local nested collections
===================================================================
M io_scene_gltf2/__init__.py
M io_scene_gltf2/blender/exp/gltf2_blender_gather_tree.py
===================================================================
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 38d20a18..fe391793 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -4,7 +4,7 @@
bl_info = {
'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
- "version": (3, 2, 34),
+ "version": (3, 2, 35),
'blender': (3, 1, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_tree.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_tree.py
index dc27e877..ba63e049 100644
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_tree.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_tree.py
@@ -204,7 +204,7 @@ class VExportTree:
# Collections
if blender_object.instance_type == 'COLLECTION' and blender_object.instance_collection:
- for dupli_object in blender_object.instance_collection.objects:
+ for dupli_object in blender_object.instance_collection.all_objects:
if dupli_object.parent is not None:
continue
self.recursive_node_traverse(dupli_object, None, node.uuid, node.matrix_world)
More information about the Bf-extensions-cvs
mailing list