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

View File

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