Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-02-18 18:39:53 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-02-18 18:39:53 +0300
commit17ba3bcbda12a673dbdb178ece308d75ed4faf8a (patch)
treea85bc186ee89acb63717608697dce3527489c56f /io_scene_fbx
parentc307a89e281a2e8830ba99e4bb1a46fcf4ee77cd (diff)
FBX importer: minor fix to normals import code.
Diffstat (limited to 'io_scene_fbx')
-rw-r--r--io_scene_fbx/import_fbx.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index 02d7bbc9..534cc739 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -1051,7 +1051,12 @@ def blen_read_geom_layer_normal(fbx_obj, mesh, xform=None):
for blen_data, func in tries:
if func(mesh, blen_data, "normal",
fbx_layer_data, fbx_layer_index, fbx_layer_mapping, fbx_layer_ref, 3, 3, layer_id, xform):
+ if blen_data == mesh.vertices:
+ # We have to copy vnors to lnors! Far from elegant, but simple.
+ for l in mesh.loops:
+ l.normal[:] = mesh.vertices[l.vertex_index].normal
return True
+ return False
def blen_read_geom(fbx_tmpl, fbx_obj, settings):