diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index c192f853c56bdb9d19595e8d80a1e7559c702d2a..3ba3580fa4671a9444594c03762694442210d659 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)