From 52b94049f2a71a74f52247f83657cf3a5c8712b4 Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Tue, 13 Jul 2021 12:51:29 -0300 Subject: Fix 'Correct Face Attributes' option With this option enabled, updating the geometry is no longer deform only. --- source/blender/editors/transform/transform_convert_mesh.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/transform/transform_convert_mesh.c b/source/blender/editors/transform/transform_convert_mesh.c index 18cd62a0baf..d740f7e3adb 100644 --- a/source/blender/editors/transform/transform_convert_mesh.c +++ b/source/blender/editors/transform/transform_convert_mesh.c @@ -2094,7 +2094,12 @@ void recalcData_mesh(TransInfo *t) tc_mesh_partial_types_calc(t, &partial_state); FOREACH_TRANS_DATA_CONTAINER (t, tc) { - DEG_id_tag_update(tc->obedit->data, ID_RECALC_GEOMETRY_DEFORM); + const bool use_cd_layer_correct = + tc->custom.type.data && + ((struct TransCustomDataMesh *)tc->custom.type.data)->cd_layer_correct; + + DEG_id_tag_update(tc->obedit->data, + use_cd_layer_correct ? ID_RECALC_GEOMETRY : ID_RECALC_GEOMETRY_DEFORM); tc_mesh_partial_update(t, tc, &partial_state); } -- cgit v1.2.3