diff options
author | Michalis Kamburelis <kambi> | 2020-03-27 02:39:01 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-03-27 02:39:19 +0300 |
commit | 91733dfff1bec689745209cc33fe458b65d9f19a (patch) | |
tree | c7ee52bbb66839ea3d593ab0d67cdf5c4bc74735 /io_scene_x3d/export_x3d.py | |
parent | f05763b347926198316aae24938914c1de7560a7 (diff) |
X3D exporter: export "backface culling" as X3D solid field
See X3D specification:
https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rendering.html#CommonGeometryFields
Differential Revision: https://developer.blender.org/D7186
Diffstat (limited to 'io_scene_x3d/export_x3d.py')
-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 52b43931..a9d694d6 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -699,7 +699,7 @@ def export(file, fw('%s<IndexedTriangleSet ' % ident))) # --- Write IndexedTriangleSet Attributes (same as IndexedFaceSet) - fw('solid="false"\n') # not available anymore: bool_as_str(material and material.game_settings.use_backface_culling)) + fw('solid="%s"\n' % bool_as_str(material and material.use_backface_culling)) if use_normals or is_force_normals: fw(ident_step + 'normalPerVertex="true"\n') @@ -834,7 +834,7 @@ def export(file, fw('%s<IndexedFaceSet ' % ident))) # --- Write IndexedFaceSet Attributes (same as IndexedTriangleSet) - fw('solid="false"\n') # not available anymore: bool_as_str(material and material.game_settings.use_backface_culling) + fw('solid="%s"\n' % bool_as_str(material and material.use_backface_culling)) if is_smooth: # use Auto-Smooth angle, if enabled. Otherwise make # the mesh perfectly smooth by creaseAngle > pi. |