Errors emitted from PskExporter::export will not be displayed more gracefully.
This commit is contained in:
@@ -127,11 +127,11 @@ class PskExportOperator(Operator, ExportHelper):
|
|||||||
options.bone_group_indices = [x.index for x in property_group.bone_group_list if x.is_selected]
|
options.bone_group_indices = [x.index for x in property_group.bone_group_list if x.is_selected]
|
||||||
try:
|
try:
|
||||||
psk = builder.build(context, options)
|
psk = builder.build(context, options)
|
||||||
|
exporter = PskExporter(psk)
|
||||||
|
exporter.export(self.filepath)
|
||||||
except RuntimeError as e:
|
except RuntimeError as e:
|
||||||
self.report({'ERROR_INVALID_CONTEXT'}, str(e))
|
self.report({'ERROR_INVALID_CONTEXT'}, str(e))
|
||||||
return {'CANCELLED'}
|
return {'CANCELLED'}
|
||||||
exporter = PskExporter(psk)
|
|
||||||
exporter.export(self.filepath)
|
|
||||||
return {'FINISHED'}
|
return {'FINISHED'}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user