[Bf-blender-cvs] [52b94049f2a] master: Fix 'Correct Face Attributes' option
Germano Cavalcante
noreply at git.blender.org
Tue Jul 13 17:53:26 CEST 2021
Commit: 52b94049f2a71a74f52247f83657cf3a5c8712b4
Author: Germano Cavalcante
Date: Tue Jul 13 12:51:29 2021 -0300
Branches: master
https://developer.blender.org/rB52b94049f2a71a74f52247f83657cf3a5c8712b4
Fix 'Correct Face Attributes' option
With this option enabled, updating the geometry is no longer deform only.
===================================================================
M source/blender/editors/transform/transform_convert_mesh.c
===================================================================
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);
}
More information about the Bf-blender-cvs
mailing list