fix error when no material is selected
This commit is contained in:
parent
e9b12e7cf0
commit
e5b860f51b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue