Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2014-04-10 23:31:39 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-04-10 23:31:39 +0400
commit6292b60a3f5b1c224ec78301c7830045560fa3b4 (patch)
tree389d6deeb90764c9c83d940ddd74066d627b215a /source/blender/blenkernel/intern/pbvh_bmesh.c
parent7bf62f0c602a59cc661c04243cca6ea9b9e3cfed (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/blenkernel/intern/pbvh_bmesh.c')
-rw-r--r--source/blender/blenkernel/intern/pbvh_bmesh.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/pbvh_bmesh.c b/source/blender/blenkernel/intern/pbvh_bmesh.c
index 432694f75f9..ba383279900 100644
--- a/source/blender/blenkernel/intern/pbvh_bmesh.c
+++ b/source/blender/blenkernel/intern/pbvh_bmesh.c
@@ -1338,6 +1338,11 @@ GSet *BKE_pbvh_bmesh_node_other_verts(PBVHNode *node)
return node->bm_other_verts;
}
+struct GSet *BKE_pbvh_bmesh_node_faces(PBVHNode *node)
+{
+ return node->bm_faces;
+}
+
/****************************** Debugging *****************************/
#if 0