Fix T76695: Not exporting normals properly in Alembic format
When auto-smooth enabled, but no custom normals layer present, the Alembic exporter would incorrectly assume the mesh was shaded smooth. This is now corrected, and normals are always written when auto-smooth is enabled.
This commit is contained in:
parent
7049d2dc58
commit
0ae64a9945
Notes:
blender-bot
2023-02-14 06:05:22 +01:00
Referenced by issue #76695, Blender 2.82 not exporting normals properly in alembic format
|
@ -139,7 +139,8 @@ static void get_loop_normals(struct Mesh *mesh,
|
|||
|
||||
/* If all polygons are smooth shaded, and there are no custom normals, we don't need to export
|
||||
* normals at all. This is also done by other software, see T71246. */
|
||||
if (!has_flat_shaded_poly && !CustomData_has_layer(&mesh->ldata, CD_CUSTOMLOOPNORMAL)) {
|
||||
if (!has_flat_shaded_poly && !CustomData_has_layer(&mesh->ldata, CD_CUSTOMLOOPNORMAL) &&
|
||||
(mesh->flag & ME_AUTOSMOOTH) == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue