[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1130] trunk/py/scripts/addons/ render_povray/render.py: dont change the path of the actual image texture
Campbell Barton
ideasman42 at gmail.com
Wed Oct 27 23:57:41 CEST 2010
Revision: 1130
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=1130
Author: campbellbarton
Date: 2010-10-27 23:57:41 +0200 (Wed, 27 Oct 2010)
Log Message:
-----------
dont change the path of the actual image texture
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 2010-10-27 21:55:01 UTC (rev 1129)
+++ trunk/py/scripts/addons/render_povray/render.py 2010-10-27 21:57:41 UTC (rev 1130)
@@ -859,28 +859,28 @@
texturesAlpha=''
for t in material.texture_slots:
if t and t.texture.type == 'IMAGE' and t.use and t.texture.image:
- image_filename = path_image(t.texture.image.filepath)
- if t.texture.image.filepath != image_filename: t.texture.image.filepath = image_filename
- if image_filename != '' and t.use_map_color_diffuse:
- texturesDif = image_filename
- colvalue = t.default_value
- t_dif = t
- if image_filename != '' and (t.use_map_specular or t.use_map_raymir):
- texturesSpec = image_filename
- colvalue = t.default_value
- t_spec = t
- if image_filename != '' and t.use_map_normal:
- texturesNorm = image_filename
- colvalue = t.normal_factor * 10
- #textNormName=t.texture.image.name + '.normal'
- #was the above used? --MR
- t_nor = t
- if image_filename != '' and t.use_map_alpha:
- texturesAlpha = image_filename
- colvalue = t.alpha_factor * 10
- #textDispName=t.texture.image.name + '.displ'
- #was the above used? --MR
- t_alpha = t
+ image_filename = path_image(t.texture.image.filepath)
+ if image_filename:
+ if t.use_map_color_diffuse:
+ texturesDif = image_filename
+ colvalue = t.default_value
+ t_dif = t
+ if t.use_map_specular or t.use_map_raymir:
+ texturesSpec = image_filename
+ colvalue = t.default_value
+ t_spec = t
+ if t.use_map_normal:
+ texturesNorm = image_filename
+ colvalue = t.normal_factor * 10.0
+ #textNormName=t.texture.image.name + '.normal'
+ #was the above used? --MR
+ t_nor = t
+ if t.use_map_alpha:
+ texturesAlpha = image_filename
+ colvalue = t.alpha_factor * 10.0
+ #textDispName=t.texture.image.name + '.displ'
+ #was the above used? --MR
+ t_alpha = t
More information about the Bf-extensions-cvs
mailing list