Update export, to be more clear and readable.

This commit is contained in:
2024-05-31 10:42:41 +02:00
parent d20a7d2198
commit 940bc14d77
-6
View File
@@ -27,7 +27,6 @@ Requiert your blend file are write on your hard-drive."""
def execute(self, context):
bpy.ops.object.select_all(action='DESELECT')
print(f'[Pipeline] Start to export the building props.')
# Make a check if the file are saved on the disk
if not bpy.data.is_saved:
@@ -42,8 +41,6 @@ Requiert your blend file are write on your hard-drive."""
self.report({'WARNING'}, 'No children collection, nothing can be exported.')
return {'CANCELLED'}
if not len(self.coll_layout.collection_children):
for coll in self.coll_layout.children:
print(f'[Pipeline] Update "{coll.name}" mesh')
child = bpy.data.collections.get(coll.name)
@@ -115,9 +112,6 @@ Requiert your blend file are write on your hard-drive."""
self.set_instance_type()
# for coll in coll_layout.children:
# print(f'[Pipeline] Check {coll}. Item type {type(coll)}')
self.report({'INFO'}, 'Placeholder exported')
return {'FINISHED'}