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>2015-09-01 19:56:23 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-09-01 19:56:32 +0300
commitb5287b1b81bf7793753f27030f040c3036730cf2 (patch)
tree0cf6eb39904ae294b9f75314cb3a38f60b58dfef /source/blender/blenkernel
parent45eb40674821a7606030872e86340f4ca836accf (diff)
Avoid reupdating pbvh data in upload functions, these should have been
taken care of in draw functions. Those iterate the whole PBVH tree so better avoid doing them, twice or thrice.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/subsurf_ccg.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/subsurf_ccg.c b/source/blender/blenkernel/intern/subsurf_ccg.c
index 998bb9835a8..9f833181fc9 100644
--- a/source/blender/blenkernel/intern/subsurf_ccg.c
+++ b/source/blender/blenkernel/intern/subsurf_ccg.c
@@ -1912,9 +1912,6 @@ static void ccgDM_buffer_copy_normal(
int shademodel;
int start = 0;
- CCG_key_top_level(&key, ss);
- ccgdm_pbvh_update(ccgdm);
-
for (i = 0; i < totface; i++) {
CCGFace *f = ccgdm->faceMap[i].face;
int S, x, y, numVerts = ccgSubSurf_getFaceNumVerts(f);
@@ -2116,10 +2113,7 @@ static void ccgDM_buffer_copy_vertex(
int totedge = ccgSubSurf_getNumEdges(ss);
int start = 0;
int edgeSize = ccgSubSurf_getEdgeSize(ss);
-
- CCG_key_top_level(&key, ss);
- ccgdm_pbvh_update(ccgdm);
-
+
for (i = 0; i < totface; i++) {
CCGFace *f = ccgdm->faceMap[i].face;
int S, x, y, numVerts = ccgSubSurf_getFaceNumVerts(f);