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:
parent
da39c14464
commit
3d460a15e3
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user