mirror of
https://github.com/DarklightGames/io_scene_psk_psa.git
synced 2024-11-15 02:37:39 +01:00
Fixed a bug where certain material errors would not display correctly
This commit is contained in:
parent
8ada80e243
commit
449331cd00
@ -161,7 +161,12 @@ class PskExportOperator(Operator, ExportHelper):
|
||||
|
||||
# Populate bone groups list.
|
||||
populate_bone_group_list(input_objects.armature_object, pg.bone_group_list)
|
||||
populate_material_list(input_objects.mesh_objects, pg.material_list)
|
||||
|
||||
try:
|
||||
populate_material_list(input_objects.mesh_objects, pg.material_list)
|
||||
except RuntimeError as e:
|
||||
self.report({'ERROR_INVALID_CONTEXT'}, str(e))
|
||||
return {'CANCELLED'}
|
||||
|
||||
context.window_manager.fileselect_add(self)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user