Page MenuHome

x3d_auto_smooth_checkbox.patch

x3d_auto_smooth_checkbox.patch

--- export_x3d_distributed.py 2012-11-10 19:42:53.000000000 +0100
+++ export_x3d.py 2012-11-10 20:07:37.000000000 +0100
@@ -853,7 +853,9 @@
# --- Write IndexedFaceSet Attributes (same as IndexedTriangleSet)
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)
+ # use Auto-Smooth angle, if enabled. Otherwise make
+ # the mesh perfectly smooth by creaseAngle > pi.
+ fw(ident_step + 'creaseAngle="%.4f"\n' % (mesh.auto_smooth_angle if mesh.use_auto_smooth else 4.0))
if use_normals:
# currently not optional, could be made so:

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
3f/79/dd99cfd3e0f456cfd44a068e913a

Event Timeline