Update object_print3d_utils/export.py #105229

Manually merged
Campbell Barton merged 1 commits from Jonathan-Wells/blender-addons:jonathan-wells-patch-1 into main 2024-03-12 01:27:22 +01:00

View File

@ -72,6 +72,11 @@ def write_mesh(context, report_cb):
obj = layer.objects.active
export_data_layers = print_3d.use_data_layers
# Make sure at least one object is selected
if not context.selected_objects:
report_cb({'ERROR'}, "No objects selected")
return False
# Create name 'export_path/blendname-objname'
# add the filename component
if bpy.data.is_saved: