glTF exporter: fix crash using full collection hierarchy export
This commit is contained in:
committed by
Philipp Oeser
parent
29bf6ae14f
commit
7389b08a08
@@ -5,7 +5,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": (4, 2, 69),
|
||||
"version": (4, 2, 70),
|
||||
'blender': (4, 2, 0),
|
||||
'location': 'File > Import-Export',
|
||||
'description': 'Import-Export as glTF 2.0',
|
||||
|
||||
@@ -175,7 +175,8 @@ class VExportTree:
|
||||
# add to parent if needed
|
||||
if parent_uuid is not None:
|
||||
self.add_children(parent_uuid, node.uuid)
|
||||
if self.nodes[parent_uuid].blender_type == VExportNode.INST_COLLECTION or original_object is not None:
|
||||
if (self.nodes[parent_uuid].blender_type == VExportNode.INST_COLLECTION or original_object is not None) or (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:
|
||||
self.roots.append(node.uuid)
|
||||
|
||||
Reference in New Issue
Block a user