From 9dcd3778e09b8fcda4de9dc9c7d99cc957eed81a Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Mon, 27 May 2024 16:03:18 -0700 Subject: [PATCH] Selected non-mesh objects will now be ignored on PSK export instead of blocking the operator from being invoked --- psk/builder.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/psk/builder.py b/psk/builder.py index 661f141..f5953f7 100644 --- a/psk/builder.py +++ b/psk/builder.py @@ -28,10 +28,8 @@ class PskBuildOptions(object): def get_psk_input_objects(context) -> PskInputObjects: input_objects = PskInputObjects() for selected_object in context.view_layer.objects.selected: - if selected_object.type != 'MESH': - raise RuntimeError(f'Selected object "{selected_object.name}" is not a mesh') - - input_objects.mesh_objects = context.view_layer.objects.selected + if selected_object.type == 'MESH': + input_objects.mesh_objects.append(selected_object) if len(input_objects.mesh_objects) == 0: raise RuntimeError('At least one mesh must be selected')