[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3960] trunk/py/scripts/addons/ io_scene_x3d/export_x3d.py: patch [#33145] X3D export: fix groundAngle and skyAngle when exporting Background

Campbell Barton ideasman42 at gmail.com
Tue Nov 13 16:13:01 CET 2012


Revision: 3960
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3960
Author:   campbellbarton
Date:     2012-11-13 15:13:00 +0000 (Tue, 13 Nov 2012)
Log Message:
-----------
patch [#33145] X3D export: fix groundAngle and skyAngle when exporting Background

Modified Paths:
--------------
    trunk/py/scripts/addons/io_scene_x3d/export_x3d.py

Modified: trunk/py/scripts/addons/io_scene_x3d/export_x3d.py
===================================================================
--- trunk/py/scripts/addons/io_scene_x3d/export_x3d.py	2012-11-13 15:00:34 UTC (rev 3959)
+++ trunk/py/scripts/addons/io_scene_x3d/export_x3d.py	2012-11-13 15:13:00 UTC (rev 3960)
@@ -1335,9 +1335,9 @@
         # Blend Gradient
         elif blending == (True, False, False):
             fw(ident_step + 'groundColor="%.3f %.3f %.3f, %.3f %.3f %.3f"\n' % (grd_triple + mix_triple))
-            fw(ident_step + 'groundAngle="1.57, 1.57"\n')
+            fw(ident_step + 'groundAngle="1.57"\n')
             fw(ident_step + 'skyColor="%.3f %.3f %.3f, %.3f %.3f %.3f"\n' % (sky_triple + mix_triple))
-            fw(ident_step + 'skyAngle="1.57, 1.57"\n')
+            fw(ident_step + 'skyAngle="1.57"\n')
         # Blend+Real Gradient Inverse
         elif blending == (True, False, True):
             fw(ident_step + 'groundColor="%.3f %.3f %.3f, %.3f %.3f %.3f"\n' % (sky_triple + grd_triple))
@@ -1351,9 +1351,9 @@
         # Blend+Real+Paper - komplex gradient
         elif blending == (True, True, True):
             fw(ident_step + 'groundColor="%.3f %.3f %.3f, %.3f %.3f %.3f"\n' % (sky_triple + grd_triple))
-            fw(ident_step + 'groundAngle="1.57, 1.57"\n')
+            fw(ident_step + 'groundAngle="1.57"\n')
             fw(ident_step + 'skyColor="%.3f %.3f %.3f, %.3f %.3f %.3f"\n' % (sky_triple + grd_triple))
-            fw(ident_step + 'skyAngle="1.57, 1.57"\n')
+            fw(ident_step + 'skyAngle="1.57"\n')
         # Any Other two colors
         else:
             fw(ident_step + 'groundColor="%.3f %.3f %.3f"\n' % grd_triple)



More information about the Bf-extensions-cvs mailing list