diff --git a/addons/io_scene_swbf_msh/msh_material_properties.py b/addons/io_scene_swbf_msh/msh_material_properties.py index 03eec4b..97c7313 100644 --- a/addons/io_scene_swbf_msh/msh_material_properties.py +++ b/addons/io_scene_swbf_msh/msh_material_properties.py @@ -191,6 +191,9 @@ class MaterialPropertiesPanel(bpy.types.Panel): bl_context = "material" def draw(self, context): + if context.material is None: + return + layout = self.layout material_props = context.material.swbf_msh