[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1445] trunk/py/scripts/addons/ render_povray/render.py: Fix for last commit
Constantin Rahn
conz at vrchannel.de
Wed Jan 19 15:43:10 CET 2011
Revision: 1445
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1445
Author: conz
Date: 2011-01-19 14:43:10 +0000 (Wed, 19 Jan 2011)
Log Message:
-----------
Fix for last commit
Modified Paths:
--------------
trunk/py/scripts/addons/render_povray/render.py
Modified: trunk/py/scripts/addons/render_povray/render.py
===================================================================
--- trunk/py/scripts/addons/render_povray/render.py 2011-01-19 14:33:45 UTC (rev 1444)
+++ trunk/py/scripts/addons/render_povray/render.py 2011-01-19 14:43:10 UTC (rev 1445)
@@ -430,15 +430,20 @@
povHasnoSpecularMaps(Level=2)
if material:
+ special_texture_found = False
for t in material.texture_slots:
if t and t.texture.type == 'IMAGE' and t.use and t.texture.image and (t.use_map_specular or t.use_map_raymir or t.use_map_normal or t.use_map_alpha):
- # Level=1 Means No specular nor Mirror reflection
- povHasnoSpecularMaps(Level=1)
-
- # Level=3 Means Maximum Spec and Mirror
- povHasnoSpecularMaps(Level=3)
+ special_texture_found = True
continue # Some texture found
+
+ if special_texture_found:
+ # Level=1 Means No specular nor Mirror reflection
+ povHasnoSpecularMaps(Level=1)
+ # Level=3 Means Maximum Spec and Mirror
+ povHasnoSpecularMaps(Level=3)
+
+
def exportCamera():
camera = scene.camera
More information about the Bf-extensions-cvs
mailing list