From 4e3db6224914c5b3f2c0fd73195bcef6da845c0f Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Thu, 9 Jun 2011 08:59:53 +0000 Subject: [PATCH] update for change in blender. --- io_scene_x3d/import_x3d.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py index 86e683947..c20afbac9 100644 --- a/io_scene_x3d/import_x3d.py +++ b/io_scene_x3d/import_x3d.py @@ -2177,8 +2177,8 @@ def importShape(node, ancestry, global_matrix): is_solid = geom.getFieldAsBool('solid', True, ancestry) creaseAngle = geom.getFieldAsFloat('creaseAngle', None, ancestry) - if creaseAngle != None: - bpydata.auto_smooth_angle = 1 + int(min(79, creaseAngle * RAD_TO_DEG)) + if creaseAngle is not None: + bpydata.auto_smooth_angle = creaseAngle bpydata.use_auto_smooth = True # Only ever 1 material per shape -- GitLab