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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user