From 47cd6297ac2a2b9cd7c2aabf3c02189806bad86f Mon Sep 17 00:00:00 2001 From: Julien Duroure Date: Thu, 26 Sep 2024 14:26:16 +0200 Subject: [PATCH] Fix #2357 fix crash with option full hierarchy --- addons/io_scene_gltf2/blender/exp/tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/io_scene_gltf2/blender/exp/tree.py b/addons/io_scene_gltf2/blender/exp/tree.py index ad6f04288..566d09d8e 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 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