diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-04-10 23:31:39 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-04-10 23:31:39 +0400 |
commit | 6292b60a3f5b1c224ec78301c7830045560fa3b4 (patch) | |
tree | 389d6deeb90764c9c83d940ddd74066d627b215a /source/blender/gpu | |
parent | 7bf62f0c602a59cc661c04243cca6ea9b9e3cfed (diff) |
Dyntopo: Minor display optimization.
While hiding, flush the hidden flags to the faces. This avoids iterating
through all the loops while updating the GPU buffers.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/intern/gpu_buffers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c index 82c14695fec..e1db9b6f83a 100644 --- a/source/blender/gpu/intern/gpu_buffers.c +++ b/source/blender/gpu/intern/gpu_buffers.c @@ -2056,7 +2056,7 @@ static int gpu_bmesh_face_visible_count(GSet *bm_faces) GSET_ITER (gh_iter, bm_faces) { BMFace *f = BLI_gsetIterator_getKey(&gh_iter); - if (!paint_is_bmesh_face_hidden(f)) + if (!BM_elem_flag_test(f, BM_ELEM_HIDDEN)) totface++; } |