diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-09 12:59:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-09 12:59:53 +0400 |
commit | 4e3db6224914c5b3f2c0fd73195bcef6da845c0f (patch) | |
tree | 8ce3482de8273eead0c26506fd5be5e0fe3b78da /io_scene_x3d | |
parent | e72dca2851413901f142ec3dc359c0b3727ac10d (diff) |
update for change in blender.
Diffstat (limited to 'io_scene_x3d')
-rw-r--r-- | io_scene_x3d/import_x3d.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py index 86e68394..c20afbac 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 |