#70267 Retopology Overlay #104599

Merged
Clément Foucault merged 30 commits from bonj/blender:retopology-overlay into main 2023-03-03 00:35:56 +01:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit a9a8878767 - Show all commits

View File

@ -158,7 +158,7 @@ void OVERLAY_edit_mesh_cache_init(OVERLAY_Data *vedata)
&psl->edit_mesh_faces_cage_ps[i];
bonj marked this conversation as resolved

Same thing here.

Same thing here.
Review

Added an if block and explanation, as discussed in DMs.

Added an if block and explanation, as discussed in DMs.
DRWShadingGroup **shgrp = (j == 0) ? &pd->edit_mesh_faces_grp[i] :
&pd->edit_mesh_faces_cage_grp[i];
state = state_common;
state = state_common | ((show_retopology) ? DRW_STATE_CULL_BACK : DRWState(0));
DRW_PASS_CREATE(*edit_face_ps, state | pd->clipping_state);
grp = *shgrp = DRW_shgroup_create(face_sh, *edit_face_ps);