tornavis/source/blender/gpencil_modifiers
Hans Goudey 64cd927519 Fix T96308: Mesh to BMesh conversion doesn't calculate vertex normals
Currently there is a "calc_face_normal" argument to mesh to bmesh
conversion, but vertex normals had always implicitly inherited whatever
dirty state the mesh input's vertex normals were in. Probably they were
most often assumed to not be dirty, but this was never really correct in
the general case.

Ever since the refactor to move vertex normals out of mesh vertices,
cfa53e0fbe, the copying logic has been explicit: copy the
normals when they are not dirty. But it turns out that more control is
needed, and sometimes normals should be calculated for the resulting
BMesh.

This commit adds an option to the conversion to calculate vertex
normals, true by default. In almost all places except the decimate
and edge split modifiers, I just copied the value of the
"calc_face_normals" argument.

Differential Revision: https://developer.blender.org/D14406
2022-03-22 09:33:50 -05:00
..
intern Fix T96308: Mesh to BMesh conversion doesn't calculate vertex normals 2022-03-22 09:33:50 -05:00
CMakeLists.txt Auto-generate RNA-structs declarations in `RNA_prototypes.h` 2022-03-14 17:08:46 +01:00
MOD_gpencil_lineart.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
MOD_gpencil_modifiertypes.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00