diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-08-07 03:09:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-08-07 03:09:56 +0300 |
commit | 84d556d381cb892f783642d2181515855ebd1732 (patch) | |
tree | fbe98bc994d2a0c6e9e44cddda0718ca17600123 /io_scene_fbx/export_fbx_bin.py | |
parent | 2fe5b9c9c1a362cdc0c47c1b80ecf541f329eb10 (diff) | |
parent | c24fa9fdf27ab6e4409d7ea2d6136c63c556dc22 (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'io_scene_fbx/export_fbx_bin.py')
-rw-r--r-- | io_scene_fbx/export_fbx_bin.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py index a06ddda7..e01dd823 100644 --- a/io_scene_fbx/export_fbx_bin.py +++ b/io_scene_fbx/export_fbx_bin.py @@ -1023,9 +1023,11 @@ def fbx_data_mesh_elements(root, me_obj, scene_data, done_meshes): if tspacenumber: t_ln = array.array(data_types.ARRAY_FLOAT64, (0.0,)) * len(me.loops) * 3 # t_lnw = array.array(data_types.ARRAY_FLOAT64, (0.0,)) * len(me.loops) + uv_names = [uvlayer.name for uvlayer in me.uv_layers] + for name in uv_names: + me.calc_tangents(name) for idx, uvlayer in enumerate(me.uv_layers): name = uvlayer.name - me.calc_tangents(name) # Loop bitangents (aka binormals). # NOTE: this is not supported by importer currently. me.loops.foreach_get("bitangent", t_ln) |