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.
This commit is contained in:
2015-09-01 19:56:23 +03:00
parent 45eb406748
commit b5287b1b81

View File

@@ -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);