diff --git a/bex_export.py b/bex_export.py index 35e7e8e..1d52d06 100644 --- a/bex_export.py +++ b/bex_export.py @@ -32,6 +32,9 @@ def remove_materials(self, obj): if obj.type == 'ARMATURE': return False + if not hasattr(obj.data, 'materials'): + return False + mat_count = len(obj.data.materials) if mat_count > 1 and self.__one_material_id: