diff options
Diffstat (limited to 'render_povray')
-rw-r--r-- | render_povray/__init__.py | 4 | ||||
-rw-r--r-- | render_povray/render.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/render_povray/__init__.py b/render_povray/__init__.py index 6d7fb77d..46ae34c0 100644 --- a/render_povray/__init__.py +++ b/render_povray/__init__.py @@ -21,9 +21,9 @@ bl_info = { "name": "POV-Ray 3.7", "author": "Campbell Barton, Silvio Falcinelli, Maurice Raybaud, Constantin Rahn", - "version": (0, 0, 7), + "version": (0, 0, 8), "blender": (2, 5, 6), - "api": 34318, + "api": 34650, "location": "Render > Engine > POV-Ray 3.7", "description": "Basic POV-Ray 3.7 integration for blender", "warning": "both POV-Ray 3.7 and this script are beta", diff --git a/render_povray/render.py b/render_povray/render.py index ac163b03..0d163e55 100644 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -1050,7 +1050,7 @@ def write_pov(filename, scene=None, info_callback=None): if texturesAlpha != "": # POV-Ray "scale" is not a number of repetitions factor, but its inverse, a standard scale factor. # Offset seems needed relatively to scale so probably center of the scale is not the same in blender and POV - mappingAlpha = " translate <%.4g,%.4g,%.4g> scale <%.4g,%.4g,%.4g>" % (t_alpha.offset.x, -t_alpha.offset.y, t_alpha.offset.z, 1.0 / t_alpha.scale.x, 1.0 / t_alpha.scale.y, 1.0 / t_alpha.scale.z) + mappingAlpha = " translate <%.4g,%.4g,%.4g> scale <%.4g,%.4g,%.4g>" % (-t_alpha.offset.x, -t_alpha.offset.y, t_alpha.offset.z, 1.0 / t_alpha.scale.x, 1.0 / t_alpha.scale.y, 1.0 / t_alpha.scale.z) tabWrite("pigment {\n") tabWrite("pigment_pattern {\n") tabWrite("uv_mapping image_map{%s \"%s\" %s}%s}\n" % (imageFormat(texturesAlpha), texturesAlpha, imgMap(t_alpha), mappingAlpha)) |