Fix T86972: transform node transforms shape keys
This commit is contained in:
parent
240f15c1b6
commit
27fa2507a1
Notes:
blender-bot
2023-02-14 09:24:53 +01:00
Referenced by issue #86972, shapekey messes up geometry node
|
@ -65,13 +65,13 @@ void transform_mesh(Mesh *mesh,
|
|||
/* Use only translation if rotation and scale are zero. */
|
||||
if (use_translate(rotation, scale)) {
|
||||
if (!translation.is_zero()) {
|
||||
BKE_mesh_translate(mesh, translation, true);
|
||||
BKE_mesh_translate(mesh, translation, false);
|
||||
}
|
||||
}
|
||||
else {
|
||||
float mat[4][4];
|
||||
loc_eul_size_to_mat4(mat, translation, rotation, scale);
|
||||
BKE_mesh_transform(mesh, mat, true);
|
||||
BKE_mesh_transform(mesh, mat, false);
|
||||
BKE_mesh_calc_normals(mesh);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue