diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-02-07 21:11:01 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-02-07 21:11:01 +0300 |
commit | ea30767997e98ffa508fd5d5ef0c79719d01ccee (patch) | |
tree | 5a2f4a0e3599af617d5db5f2441de323a8e1d7e6 /source/blender/draw/modes | |
parent | 7584ef85bf3837dda76bcfff33acd602e1b4b862 (diff) |
Edit Mode: Reduce number of edges drawn
This make sure only one line is drawn per edge.
It makes the function mesh_create_edit_loops_points_lines() non-thread safe
but this is fine as of now because nothing is multithreaded at this point.
Also this is the only function use this flag so it might be OK.
The side effect is that we don't need to use depth test in edit mode
overlay so the masking artifact will not appear.
Diffstat (limited to 'source/blender/draw/modes')
-rw-r--r-- | source/blender/draw/modes/edit_mesh_mode.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/draw/modes/edit_mesh_mode.c b/source/blender/draw/modes/edit_mesh_mode.c index d0b7e6484e3..2a3ac7bbe95 100644 --- a/source/blender/draw/modes/edit_mesh_mode.c +++ b/source/blender/draw/modes/edit_mesh_mode.c @@ -344,10 +344,6 @@ static DRWPass *edit_mesh_create_overlay_pass( DRW_shgroup_uniform_float_copy(grp, "ofs", depth_ofs); DRW_shgroup_uniform_float_copy(grp, "edgeScale", select_edge ? 1.75f : 1.0f); DRW_shgroup_state_enable(grp, DRW_STATE_OFFSET_NEGATIVE); - /* TODO remove this when we draw only one line per edge. */ - DRW_shgroup_state_enable(grp, DRW_STATE_WRITE_DEPTH); - DRW_shgroup_state_disable(grp, DRW_STATE_DEPTH_LESS_EQUAL); - DRW_shgroup_state_enable(grp, DRW_STATE_DEPTH_LESS); /* To match blender loop structure. */ DRW_shgroup_state_enable(grp, DRW_STATE_FIRST_VERTEX_CONVENTION); if (rv3d->rflag & RV3D_CLIPPING) { |