From 896011aebe86beb164c53a4ad88220e9c33adef9 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Mon, 12 Nov 2012 01:34:18 +0000 Subject: [PATCH] only write crease angle if auto-smooth is enabled. --- io_scene_x3d/export_x3d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index ddc071328..5a8d6a246 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -852,7 +852,7 @@ def export(file, # --- 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: + if is_smooth and mesh.use_auto_smooth: fw(ident_step + 'creaseAngle="%.4f"\n' % mesh.auto_smooth_angle) if use_normals: -- GitLab