FBX IO: Vertex normals access with new vertex_normals property #104651

Merged
Bastien Montagne merged 1 commits from Mysteryem/blender-addons:fbx_update_vertex_normals_api_pr into main 2023-06-26 15:36:58 +02:00
Showing only changes of commit d7d6220845 - Show all commits

View File

@ -3530,7 +3530,7 @@ def load(operator, context, filepath="",
vcos = np.empty(num_verts * 3, dtype=blen_cos_dtype)
vnorm = np.empty(num_verts * 3, dtype=blen_norm_dtype)
mesh.vertices.foreach_get("co", vcos)
mesh.vertices.foreach_get("normal", vnorm)
mesh.vertex_normals.foreach_get("vector", vnorm)
vcos += vnorm * decal_offset