diff --git a/object_print3d_utils/export.py b/object_print3d_utils/export.py index a971833ab..d49e4de2e 100644 --- a/object_print3d_utils/export.py +++ b/object_print3d_utils/export.py @@ -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: