[Bf-blender-cvs] [228c1e5345c] temp_bmesh_multires: Replace call to BMLog with origco CD layer.
Joseph Eagar
noreply at git.blender.org
Fri Nov 6 01:37:24 CET 2020
Commit: 228c1e5345c78101374af81bea8c612070719b9f
Author: Joseph Eagar
Date: Thu Nov 5 16:35:42 2020 -0800
Branches: temp_bmesh_multires
https://developer.blender.org/rB228c1e5345c78101374af81bea8c612070719b9f
Replace call to BMLog with origco CD layer.
Also fixed SCULPT_HIDE_FACE_SETS. It was 1<<16, which overlaps
SCULPT_DYNTOPO_DETAIL_MANUAL. Changed it to 1<<17. Someone should do
this in master too.
===================================================================
M source/blender/editors/sculpt_paint/sculpt.c
M source/blender/makesdna/DNA_scene_types.h
===================================================================
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 12cc492172b..690303ddc73 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -6439,7 +6439,9 @@ static void sculpt_combine_proxies_task_cb(void *__restrict userdata,
if (use_orco) {
if (ss->bm) {
- copy_v3_v3(val, BM_log_original_vert_co(ss->bm_log, vd.bm_vert));
+ float *co = BM_ELEM_CD_GET_VOID_P(vd.bm_vert, ss->cd_origco_offset);
+ copy_v3_v3(val, co);
+ //copy_v3_v3(val, BM_log_original_vert_co(ss->bm_log, vd.bm_vert));
}
else {
copy_v3_v3(val, orco[vd.i]);
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h
index 2449608be4c..af499b0684b 100644
--- a/source/blender/makesdna/DNA_scene_types.h
+++ b/source/blender/makesdna/DNA_scene_types.h
@@ -2203,7 +2203,7 @@ typedef enum eSculptFlags {
SCULPT_HIDE_MASK = (1 << 15),
/* Don't display face sets in viewport. */
- SCULPT_HIDE_FACE_SETS = (1 << 16),
+ SCULPT_HIDE_FACE_SETS = (1 << 17),
} eSculptFlags;
/* ImagePaintSettings.mode */
More information about the Bf-blender-cvs
mailing list