From 4ed076633951075c3ed6a6fab32e204def8fd1d9 Mon Sep 17 00:00:00 2001 From: Jonathan Wells Date: Sun, 10 Mar 2024 03:51:20 +0100 Subject: [PATCH] Update object_print3d_utils/export.py Fixing bug #97652 --- object_print3d_utils/export.py | 5 +++++ 1 file changed, 5 insertions(+) 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: -- 2.30.2