Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/subsurf_ccg.c
| Show First 20 Lines • Show All 1,619 Lines • ▼ Show 20 Lines | static void ccgDM_drawEdges(DerivedMesh *dm, int drawLooseEdges, int drawAllEdges) | ||||
| int i, j, edgeSize = ccgSubSurf_getEdgeSize(ss); | int i, j, edgeSize = ccgSubSurf_getEdgeSize(ss); | ||||
| int totedge = ccgSubSurf_getNumEdges(ss); | int totedge = ccgSubSurf_getNumEdges(ss); | ||||
| int gridSize = ccgSubSurf_getGridSize(ss); | int gridSize = ccgSubSurf_getGridSize(ss); | ||||
| int useAging; | int useAging; | ||||
| CCG_key_top_level(&key, ss); | CCG_key_top_level(&key, ss); | ||||
| ccgdm_pbvh_update(ccgdm); | ccgdm_pbvh_update(ccgdm); | ||||
| if (ccgdm->pbvh) { | |||||
| BKE_pbvh_draw(ccgdm->pbvh, NULL, NULL, NULL, TRUE); | |||||
| return; | |||||
| } | |||||
| ccgSubSurf_getUseAgeCounts(ss, &useAging, NULL, NULL, NULL); | ccgSubSurf_getUseAgeCounts(ss, &useAging, NULL, NULL, NULL); | ||||
| for (j = 0; j < totedge; j++) { | for (j = 0; j < totedge; j++) { | ||||
| CCGEdge *e = ccgdm->edgeMap[j].edge; | CCGEdge *e = ccgdm->edgeMap[j].edge; | ||||
| CCGElem *edgeData = ccgSubSurf_getEdgeDataArray(ss, e); | CCGElem *edgeData = ccgSubSurf_getEdgeDataArray(ss, e); | ||||
| if (!drawLooseEdges && !ccgSubSurf_getEdgeNumFaces(e)) | if (!drawLooseEdges && !ccgSubSurf_getEdgeNumFaces(e)) | ||||
| continue; | continue; | ||||
| ▲ Show 20 Lines • Show All 2,099 Lines • Show Last 20 Lines | |||||