diff options
-rw-r--r-- | io_scene_x3d/export_x3d.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index 391f8ec3..4fa73b3b 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -175,12 +175,13 @@ class x3d_class: mparam = world.mist_settings else: return - if (mtype == 'LINEAR' or mtype == 'INVERSE_QUADRATIC'): + + if mparam.use_mist: mtype = 1 if mtype == 'LINEAR' else 2 # if (mtype == 1 or mtype == 2): self.file.write("<Fog fogType=\"%s\" " % self.namesFog[mtype]) self.file.write("color=\"%s %s %s\" " % round_color(world.horizon_color, self.cp)) - self.file.write("visibilityRange=\"%s\" />\n\n" % round(mparam[2], self.cp)) + self.file.write("visibilityRange=\"%s\" />\n\n" % round(mparam.depth, self.cp)) else: return |