From 0e3cbe585c2a25296d2c72527122ebb9d3b1babc Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Tue, 20 Mar 2012 23:31:46 +0000
Subject: [PATCH] patch [#30580] X3D exporter sets solid to inverted value

from Michalis Kamburelis (kambi)
---
 io_scene_x3d/export_x3d.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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