Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-12-23 01:16:34 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-12-23 01:16:34 +0300
commitd7d4388f650a5390715396fdeaa09f46b3dc191c (patch)
tree50e2349320aac60e74d2f34127e390d5c97a74d3 /render_povray/ui.py
parent1efbaf92ae58278c0b5675b35f3a0970265cb895 (diff)
objects with no materials were raising errors.
Diffstat (limited to 'render_povray/ui.py')
-rw-r--r--render_povray/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/render_povray/ui.py b/render_povray/ui.py
index e156c5e7..d1c0b769 100644
--- a/render_povray/ui.py
+++ b/render_povray/ui.py
@@ -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):