[Bf-extensions-cvs] [df24402] master: Fix T43148: FBX Export: Ignores auto smooth angle.
Bastien Montagne
noreply at git.blender.org
Tue Jan 6 21:33:48 CET 2015
Commit: df244023da0a436a1f71d6412f32ab39a72ad641
Author: Bastien Montagne
Date: Tue Jan 6 21:33:01 2015 +0100
Branches: master
https://developer.blender.org/rBAdf244023da0a436a1f71d6412f32ab39a72ad641
Fix T43148: FBX Export: Ignores auto smooth angle.
===================================================================
M io_scene_fbx/export_fbx_bin.py
===================================================================
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index 5cc4d5a..f02e8db 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -950,7 +950,10 @@ def fbx_data_mesh_elements(root, me_obj, scene_data, done_meshes):
# NOTE: this is not supported by importer currently.
# XXX Official docs says normals should use IndexToDirect,
# but this does not seem well supported by apps currently...
- me.calc_normals_split()
+ if me.use_auto_smooth:
+ me.calc_normals_split(split_angle=me.auto_smooth_angle)
+ else:
+ me.calc_normals_split()
t_ln = array.array(data_types.ARRAY_FLOAT64, (0.0,)) * len(me.loops) * 3
me.loops.foreach_get("normal", t_ln)
More information about the Bf-extensions-cvs
mailing list