went over all uses of mesh->mface and added BMESH_TODO comments for

areas that need to be updated.
This commit is contained in:
Campbell Barton
2012-02-15 14:39:18 +00:00
parent c0b2363358
commit bc6bbcccc9
6 changed files with 10 additions and 0 deletions

View File

@@ -327,6 +327,8 @@ static void extern_local_image(Image *UNUSED(ima))
match id_make_local pattern. */
}
/* BMESH_TODO - MTexPoly, currently this function only does 'me->mtface' */
void make_local_image(struct Image *ima)
{
Main *bmain= G.main;

View File

@@ -774,6 +774,8 @@ void psys_render_restore(Object *ob, ParticleSystem *psys)
psys->renderdata= NULL;
}
/* BMESH_TODO, for orig face data, we need to use MPoly */
int psys_render_simplify_distribution(ParticleThreadContext *ctx, int tot)
{
DerivedMesh *dm= ctx->dm;

View File

@@ -1079,6 +1079,7 @@ static int mirror_facecmp(const void *a, const void *b)
return (mirror_facerotation((MFace*)a, (MFace*)b) == -1);
}
/* BMESH_TODO, convert to MPoly (functions above also) */
int *mesh_get_x_mirror_faces(Object *ob, BMEditMesh *em)
{
Mesh *me= ob->data;

View File

@@ -949,6 +949,7 @@ static int multiresbake_check(bContext *C, wmOperator *op)
ok= 0;
} else {
/* BMESH_TODO - use MPoly rather then tessface */
a= me->totface;
while (ok && a--) {
Image *ima= me->mtface[a].tpage;

View File

@@ -778,6 +778,8 @@ static int tryToAddVerts(int *verts, int length, int a, int b)
return added;
}
/* BMESH_TODO - use MPoly's */
/* This finds all of the vertices connected to vert by an edge
and returns an array of indices of size count

View File

@@ -257,6 +257,8 @@ void crazyspace_set_quats_editmesh(BMEditMesh *em, float *origcos, float *mapped
#endif
}
/* BMESH_TODO - use MPolys over MFace's */
void crazyspace_set_quats_mesh(Mesh *me, float *origcos, float *mappedcos, float *quats)
{
int i;