Skip to content
Snippets Groups Projects
Commit d7d4388f authored by Campbell Barton's avatar Campbell Barton
Browse files

objects with no materials were raising errors.

parent 1efbaf92
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ class MaterialButtonsPanel():
def poll(cls, context):
mat = context.material
rd = context.scene.render
return (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
return mat and (rd.use_game_engine == False) and (rd.engine in cls.COMPAT_ENGINES)
########################################MR######################################
class MATERIAL_PT_povray_mirrorIOR(MaterialButtonsPanel, bpy.types.Panel):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment