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

dont change the path of the actual image texture

parent 08167bf8
Branches
Tags
No related merge requests found
...@@ -859,28 +859,28 @@ def write_pov(filename, scene=None, info_callback=None): ...@@ -859,28 +859,28 @@ def write_pov(filename, scene=None, info_callback=None):
texturesAlpha='' texturesAlpha=''
for t in material.texture_slots: for t in material.texture_slots:
if t and t.texture.type == 'IMAGE' and t.use and t.texture.image: if t and t.texture.type == 'IMAGE' and t.use and t.texture.image:
image_filename = path_image(t.texture.image.filepath) image_filename = path_image(t.texture.image.filepath)
if t.texture.image.filepath != image_filename: t.texture.image.filepath = image_filename if image_filename:
if image_filename != '' and t.use_map_color_diffuse: if t.use_map_color_diffuse:
texturesDif = image_filename texturesDif = image_filename
colvalue = t.default_value colvalue = t.default_value
t_dif = t t_dif = t
if image_filename != '' and (t.use_map_specular or t.use_map_raymir): if t.use_map_specular or t.use_map_raymir:
texturesSpec = image_filename texturesSpec = image_filename
colvalue = t.default_value colvalue = t.default_value
t_spec = t t_spec = t
if image_filename != '' and t.use_map_normal: if t.use_map_normal:
texturesNorm = image_filename texturesNorm = image_filename
colvalue = t.normal_factor * 10 colvalue = t.normal_factor * 10.0
#textNormName=t.texture.image.name + '.normal' #textNormName=t.texture.image.name + '.normal'
#was the above used? --MR #was the above used? --MR
t_nor = t t_nor = t
if image_filename != '' and t.use_map_alpha: if t.use_map_alpha:
texturesAlpha = image_filename texturesAlpha = image_filename
colvalue = t.alpha_factor * 10 colvalue = t.alpha_factor * 10.0
#textDispName=t.texture.image.name + '.displ' #textDispName=t.texture.image.name + '.displ'
#was the above used? --MR #was the above used? --MR
t_alpha = t t_alpha = t
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment