diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2022-04-29 09:25:08 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2022-04-29 09:25:08 +0300 |
commit | 3f6734bdf2a86f5920fb3ed590c2467ae6bdbeea (patch) | |
tree | 9cff9cd5c480b1e32697f280423f2514d7b3f283 /io_scene_gltf2/blender/exp/gltf2_blender_gather_tree.py | |
parent | dbb9b62991b35d7f6285419460f3e829e076fd96 (diff) |
glTF exporter: fix missing objects when instancing local nested collections
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_tree.py')
-rw-r--r-- | io_scene_gltf2/blender/exp/gltf2_blender_gather_tree.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |