diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-04-27 16:59:51 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-04-27 17:02:34 +0300 |
commit | 69a720abb0d7ca3e41eda927f919909576bfa972 (patch) | |
tree | f68ef2aaa2a2b88aff0c97526ded02a43e0141b4 /source/blender/blenkernel | |
parent | 478eb3a0e6edeb84caacbc294a5f331b497a5e21 (diff) |
Fix broken obj tests from earlier commit
rB08731d70bf66 was not properly checking if subdivision needs to be
evaluated on the CPU.
Thanks Ray Molenkamp for noticing.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/DerivedMesh.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/DerivedMesh.cc b/source/blender/blenkernel/intern/DerivedMesh.cc index a0ec99b1593..7ca76e72839 100644 --- a/source/blender/blenkernel/intern/DerivedMesh.cc +++ b/source/blender/blenkernel/intern/DerivedMesh.cc @@ -634,7 +634,7 @@ static void mesh_calc_modifier_final_normals(const Mesh *mesh_input, if (do_loop_normals) { /* Compute loop normals (NOTE: will compute poly and vert normals as well, if needed!). In case * of deferred CPU subdivision, this will be computed when the wrapper is generated. */ - if (mesh_final->runtime.subsurf_resolution != 0) { + if (mesh_final->runtime.subsurf_resolution == 0) { BKE_mesh_calc_normals_split(mesh_final); } } @@ -1285,7 +1285,7 @@ static void editbmesh_calc_modifier_final_normals(Mesh *mesh_final, if (do_loop_normals) { /* Compute loop normals. In case of deferred CPU subdivision, this will be computed when the * wrapper is generated. */ - if (mesh_final->runtime.subsurf_resolution != 0) { + if (mesh_final->runtime.subsurf_resolution == 0) { BKE_mesh_calc_normals_split(mesh_final); } } |