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:
authorCampbell Barton <ideasman42@gmail.com>2012-11-13 19:13:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-11-13 19:13:00 +0400
commit6f081580fd662f3a2e95156b647cde37f3b6438b (patch)
treebcc084209f753678e87d34f83980abeb3f102042 /io_scene_x3d
parentc52466848c85092a010853ca729f1a964a79cc22 (diff)
patch [#33145] X3D export: fix groundAngle and skyAngle when exporting Background
Diffstat (limited to 'io_scene_x3d')
-rw-r--r--io_scene_x3d/export_x3d.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py
index 5e6afc3a..eb5d346e 100644
--- a/io_scene_x3d/export_x3d.py
+++ b/io_scene_x3d/export_x3d.py
@@ -1335,9 +1335,9 @@ def export(file,
# 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 @@ def export(file,
# 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)