diff options
author | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2016-07-21 22:59:30 +0300 |
---|---|---|
committer | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2016-07-21 22:59:30 +0300 |
commit | be03a24dc537262012c1c3fca6d2dc0a01752b50 (patch) | |
tree | 1bdf413661d2eea9231979a714aead371b468d61 /render_povray/render.py | |
parent | 3c23caa4c0b31b9908a43737369b715915a8fe62 (diff) |
fixed : BI texture Scale support for procedurals
Diffstat (limited to 'render_povray/render.py')
-rw-r--r-- | render_povray/render.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/render_povray/render.py b/render_povray/render.py index d0fde8de..4d6d7e6b 100644 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -93,6 +93,9 @@ def imgMapTransforms(ts): # inverse, a standard scale factor. # 0.5 Offset is needed relatively to scale because center of the # scale is 0.5,0.5 in blender and 0,0 in POV + # Strange that the translation factor for scale is not the same as for + # translate. + # TODO: verify both matches with blender internal. image_map_transforms = "" image_map_transforms = ("scale <%.4g,%.4g,%.4g> translate <%.4g,%.4g,%.4g>" % \ ( 1.0 / ts.scale.x, @@ -3159,7 +3162,7 @@ def write_pov(filename, scene=None, info_callback=None): file.write("\n//--Patterns Definitions--\n\n") LocalPatternNames = [] for texture in bpy.data.textures: #ok? - if texture.users > 0: + if texture.users > 0: currentPatName = string_strip_hyphen(bpy.path.clean_name(texture.name)) #string_strip_hyphen(patternNames[texture.name]) #maybe instead of the above LocalPatternNames.append(currentPatName) |