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:
authorConstantin Rahn <conz@vrchannel.de>2011-02-08 14:42:20 +0300
committerConstantin Rahn <conz@vrchannel.de>2011-02-08 14:42:20 +0300
commit7df77158d8942bf43342b8bca3b733f7cf24ab13 (patch)
treeb042485c5fc62127f95dcb13ea64ddac9eb8c7aa /render_povray
parente6f551aef77743f314368b66b590b331d3b1b38f (diff)
Version 0.0.8
API: 34650 fix: x-offset in one mapping of Alphamap was inverted
Diffstat (limited to 'render_povray')
-rw-r--r--render_povray/__init__.py4
-rw-r--r--render_povray/render.py2
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))