diff --git a/addons/io_scene_gltf2/blender/exp/tree.py b/addons/io_scene_gltf2/blender/exp/tree.py index ad6f04288..b82e9fcd3 100644 --- a/addons/io_scene_gltf2/blender/exp/tree.py +++ b/addons/io_scene_gltf2/blender/exp/tree.py @@ -160,7 +160,7 @@ def recursive_node_traverse(self, blender_object, blender_bone, parent_uuid, par # 2. Old Dupli vertices feature # For any other case, children are real children if (self.nodes[parent_uuid].blender_type == VExportNode.INST_COLLECTION or original_object is not None) or \ - (self.nodes[parent_uuid].blender_object is not None and self.nodes[parent_uuid].blender_object.is_instancer is True): + (self.nodes[parent_uuid].blender_type != VExportNode.COLLECTION and self.nodes[parent_uuid].blender_object is not None and self.nodes[parent_uuid].blender_object.is_instancer is True): self.nodes[parent_uuid].children_type[node.uuid] = VExportNode.CHILDREN_IS_IN_COLLECTION if is_children_in_collection is True else VExportNode.CHILDREN_REAL else: # We are in a regular case where children are real children