diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-30 04:15:29 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-30 04:15:29 +0400 |
commit | 783eb14685ec1d2815bfc06acf6615f33b5856b1 (patch) | |
tree | f018d468237e5f41bc008796a0365bb1c305c5a2 /io_scene_x3d | |
parent | 5d47c3aa6c91c5c9eed71349411ab7a367fe6d35 (diff) |
fix for exporting fog names
Diffstat (limited to 'io_scene_x3d')
-rw-r--r-- | io_scene_x3d/export_x3d.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index 86d2209b..08018712 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -92,7 +92,6 @@ def clean_str(name, prefix='rsvd_'): newName = newName.replace(bad, "_") return newName -namesFog = ("", "LINEAR", "EXPONENTIAL", "") ########################################################## # Functions for writing output file @@ -156,8 +155,7 @@ def export(file, return if mparam.use_mist: - mtype = 1 if mtype == 'LINEAR' else 2 - fw("%s<Fog fogType=\"%s\" " % (ident, __class__.namesFog[mtype])) + fw("%s<Fog fogType=\"%s\" " % (ident, "LINEAR" if (mtype == 'LINEAR') else "EXPONENTIAL")) fw("color=\"%.3g %.3g %.3g\" " % clamp_color(world.horizon_color)) fw("visibilityRange=\"%.3g\" />\n" % mparam.depth) else: |