Ensure material exists

This commit is contained in:
luboslenco 2019-04-02 18:53:53 +02:00
parent e87590ed6a
commit f02de4b16b

View file

@ -228,7 +228,9 @@ class ARM_PT_MaterialBlendingPropsPanel(bpy.types.Panel):
bl_parent_id = "ARM_PT_MaterialPropsPanel"
def draw_header(self, context):
self.layout.prop(bpy.context.material, 'arm_blending', text="")
if context.material == None:
return
self.layout.prop(context.material, 'arm_blending', text="")
def draw(self, context):
layout = self.layout