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:
committed by
Thomas Dinges
parent
6b9655eba9
commit
38e93e9608
@@ -1221,6 +1221,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 {
|
||||
|
||||
Reference in New Issue
Block a user