Fix #119992: Object transform ignored for shrinkwrap and flat shading

the transform was always ignored for face normals since b4b224dc08.
This commit is contained in:
Hans Goudey 2024-03-28 13:41:03 -04:00
parent d5a61a8f55
commit a5c5cf473e
1 changed files with 3 additions and 0 deletions

View File

@ -1205,6 +1205,9 @@ void BKE_shrinkwrap_compute_smooth_normal(const ShrinkwrapTreeData *tree,
/* Use the face normal if flat. */
else if (!tree->face_normals.is_empty()) {
copy_v3_v3(r_no, tree->face_normals[face_i]);
if (transform) {
BLI_space_transform_invert_normal(transform, r_no);
}
}
/* Finally fallback to the corner_tris normal. */
else {