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:
authorMichalis Kamburelis <kambi>2020-03-27 02:39:01 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-03-27 02:39:19 +0300
commit91733dfff1bec689745209cc33fe458b65d9f19a (patch)
treec7ee52bbb66839ea3d593ab0d67cdf5c4bc74735 /io_scene_x3d
parentf05763b347926198316aae24938914c1de7560a7 (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')
-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 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.