Sculpt: Add area normal test to clay strips for better front faces detection
This commit is contained in:
parent
b82a2fd9ab
commit
895fef5ccb
|
@ -1114,6 +1114,7 @@ void SCULPT_tag_update_overlays(bContext *C)
|
|||
View3D *v3d = CTX_wm_view3d(C);
|
||||
if (!BKE_sculptsession_use_pbvh_draw(ob, v3d)) {
|
||||
DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
|
||||
DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5689,6 +5690,12 @@ static void do_clay_strips_brush_task_cb_ex(void *__restrict userdata,
|
|||
continue;
|
||||
}
|
||||
|
||||
float vertex_no[3];
|
||||
SCULPT_vertex_normal_get(ss, vd.index, vertex_no);
|
||||
if (dot_v3v3(area_no_sp, vertex_no) <= -0.1f) {
|
||||
continue;
|
||||
}
|
||||
|
||||
float intr[3];
|
||||
float val[3];
|
||||
closest_to_plane_normalized_v3(intr, test.plane_tool, vd.co);
|
||||
|
|
Loading…
Reference in New Issue