diff options
Diffstat (limited to 'io_scene_x3d')
-rw-r--r-- | io_scene_x3d/export_x3d.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index c192f853..3ba3580f 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -708,7 +708,7 @@ def export(file, fw('%s<IndexedTriangleSet ' % ident))) # --- Write IndexedTriangleSet Attributes (same as IndexedFaceSet) - fw('solid="%s"\n' % ('true' if mesh.show_double_sided else 'false')) + fw('solid="%s"\n' % ('true' if material and material.game_settings.use_backface_culling else 'false')) if use_normals or is_force_normals: fw(ident_step + 'normalPerVertex="true"\n') @@ -851,7 +851,7 @@ def export(file, fw('%s<IndexedFaceSet ' % ident))) # --- Write IndexedFaceSet Attributes (same as IndexedTriangleSet) - fw('solid="%s"\n' % ('true' if mesh.show_double_sided else 'false')) + fw('solid="%s"\n' % ('true' if material and material.game_settings.use_backface_culling else 'false')) if is_smooth: fw(ident_step + 'creaseAngle="%.4f"\n' % mesh.auto_smooth_angle) |