[Bf-blender-cvs] [8a94425e966] blender2.8: Cleanup: redundant check for hidden edge

Campbell Barton noreply at git.blender.org
Tue Oct 16 00:03:05 CEST 2018


Commit: 8a94425e966db6a043d7a9f2565e8b3eed0e4ffe
Author: Campbell Barton
Date:   Tue Oct 16 09:01:52 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB8a94425e966db6a043d7a9f2565e8b3eed0e4ffe

Cleanup: redundant check for hidden edge

===================================================================

M	source/blender/draw/intern/draw_cache_impl_mesh.c

===================================================================

diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c
index eba3890ef6b..85f302607bd 100644
--- a/source/blender/draw/intern/draw_cache_impl_mesh.c
+++ b/source/blender/draw/intern/draw_cache_impl_mesh.c
@@ -3767,13 +3767,11 @@ static void mesh_batch_cache_create_overlay_ledge_buffers(
 			BMesh *bm = rdata->edit_bmesh->bm;
 			for (uint i = 0; i < ledge_len; i++) {
 				const BMEdge *eed = BM_edge_at_index(bm, rdata->loose_edges[i]);
-				if (!BM_elem_flag_test(eed, BM_ELEM_HIDDEN)) {
-					add_overlay_loose_edge(
-					        rdata, vbo_pos, vbo_nor, vbo_data,
-					        attr_id.pos, attr_id.vnor, attr_id.data,
-					        eed, vbo_len_used);
-					vbo_len_used += 2;
-				}
+				add_overlay_loose_edge(
+				        rdata, vbo_pos, vbo_nor, vbo_data,
+				        attr_id.pos, attr_id.vnor, attr_id.data,
+				        eed, vbo_len_used);
+				vbo_len_used += 2;
 			}
 		}
 	}



More information about the Bf-blender-cvs mailing list