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:
authorMaurice Raybaud <mauriceraybaud@hotmail.fr>2018-01-28 15:47:02 +0300
committerMaurice Raybaud <mauriceraybaud@hotmail.fr>2018-01-28 15:47:02 +0300
commit1df44726b049543330d033fd7685771007eae06d (patch)
tree72b2893b646722e5fa732a297d3984531ebb0089 /render_povray/shading.py
parent87579bd164c60ac7e6861be49bc7bcd4b84641ce (diff)
Added Lamp , Radiosity, and World presets
Diffstat (limited to 'render_povray/shading.py')
-rw-r--r--render_povray/shading.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/render_povray/shading.py b/render_povray/shading.py
index 5a371707..03a63a9d 100644
--- a/render_povray/shading.py
+++ b/render_povray/shading.py
@@ -245,13 +245,11 @@ def writeMaterial(using_uberpov, DEF_MAT_NAME, scene, tabWrite, safety, comments
for t in material.texture_slots:
if t and t.use and t.texture is not None:
if (t.texture.type == 'IMAGE' and t.texture.image) or t.texture.type != 'IMAGE':
- validPath=True
- else:
- validPath=False
- if(t and t.use and validPath and
- (t.use_map_specular or t.use_map_raymir or t.use_map_normal or t.use_map_alpha)):
- special_texture_found = True
- continue # Some texture found
+ #validPath
+ if(t and t.use and
+ (t.use_map_specular or t.use_map_raymir or t.use_map_normal or t.use_map_alpha)):
+ special_texture_found = True
+ continue # Some texture found
if special_texture_found or colored_specular_found:
# Level=1 Means No specular nor Mirror reflection
@@ -1087,7 +1085,6 @@ def writeTextureInfluence(mater, materialNames, LocalMaterialNames, path_image,
else:
if texturesDif and texturesDif.startswith("PAT_"):
tabWrite("pigment{%s %s}\n" %(texturesDif, mappingDif))
- print('XXXMEEEERDE!')
else:
tabWrite("pigment {\n")
tabWrite("uv_mapping image_map {\n")