1
0
mirror of https://github.com/DarklightGames/io_scene_psk_psa.git synced 2025-02-17 10:08:31 +01:00

Added a specific error for when the user doesn't select any animations to export, as this was confusing some folks

This commit is contained in:
Colin Basnett 2023-09-06 02:38:11 -07:00
parent da39c14464
commit 3d460a15e3

View File

@ -167,6 +167,10 @@ class PSA_OT_import(Operator, ImportHelper):
options.should_convert_to_samples = pg.should_convert_to_samples
options.bone_mapping_mode = pg.bone_mapping_mode
if len(sequence_names) == 0:
self.report({'ERROR_INVALID_CONTEXT'}, 'No sequences selected')
return {'CANCELLED'}
result = import_psa(context, psa_reader, context.view_layer.objects.active, options)
if len(result.warnings) > 0: