fix error when no material is selected

This commit is contained in:
SleepKiller 2019-11-21 23:24:26 +13:00
parent e9b12e7cf0
commit e5b860f51b
1 changed files with 3 additions and 0 deletions

View File

@ -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