Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-21 03:31:46 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-21 03:31:46 +0400
commit0e3cbe585c2a25296d2c72527122ebb9d3b1babc (patch)
treedde5c62fb1af87225c18bd60c722db9576b9563c /io_scene_x3d/export_x3d.py
parent19ad96f200bd118f304f04204a884c75a9fc2b50 (diff)
patch [#30580] X3D exporter sets solid to inverted value
from Michalis Kamburelis (kambi)
Diffstat (limited to 'io_scene_x3d/export_x3d.py')
-rw-r--r--io_scene_x3d/export_x3d.py4
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)