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>2013-09-26 06:02:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-09-26 06:02:08 +0400
commitb6cb6f2de9eec53ad565ac32946b15942748db2e (patch)
treef0c00ded8b38308255e5cd9af1146a04c5657525 /render_povray
parent7dfa3283b67505b32ede971fa54731364c876a9c (diff)
use a more direct way to check for color (check saturation)
Diffstat (limited to 'render_povray')
-rw-r--r--render_povray/render.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/render_povray/render.py b/render_povray/render.py
index 7c26b906..a4724ef7 100644
--- a/render_povray/render.py
+++ b/render_povray/render.py
@@ -312,15 +312,10 @@ def write_pov(filename, scene=None, info_callback=None):
comments = scene.pov.comments_enable
-
+
if material:
- if (material.specular_color.r == material.specular_color.g) and (material.specular_color.r == material.specular_color.b):
- colored_specular_found = False
- else:
- colored_specular_found = True
-
-
-
+ colored_specular_found = (material.specular_color.s > 0.0)
+
##################
# Several versions of the finish: Level conditions are variations for specular/Mirror
# texture channel map with alternative finish of 0 specular and no mirror reflection.