code cleanup: typos
This commit is contained in:
@@ -257,7 +257,7 @@ AviError AVI_set_compress_option(AviMovie *movie,
|
|||||||
int stream,
|
int stream,
|
||||||
AviOption option,
|
AviOption option,
|
||||||
void *opt_data);
|
void *opt_data);
|
||||||
/* Hmmm... there should be some explanantion about what these mean */
|
/* Hmmm... there should be some explanation about what these mean */
|
||||||
/**
|
/**
|
||||||
* Compression option, for use in avi_set_compress_option
|
* Compression option, for use in avi_set_compress_option
|
||||||
*/
|
*/
|
||||||
|
@@ -691,7 +691,7 @@ void BMO_remove_tagged_context(BMesh *bm, const short oflag, const int type)
|
|||||||
}
|
}
|
||||||
case DEL_FACES:
|
case DEL_FACES:
|
||||||
{
|
{
|
||||||
/* go through and mark all edges and all verts of all faces for delet */
|
/* go through and mark all edges and all verts of all faces for delete */
|
||||||
BM_ITER_MESH (f, &fiter, bm, BM_FACES_OF_MESH) {
|
BM_ITER_MESH (f, &fiter, bm, BM_FACES_OF_MESH) {
|
||||||
if (BMO_elem_flag_test(bm, f, oflag)) {
|
if (BMO_elem_flag_test(bm, f, oflag)) {
|
||||||
for (e = BM_iter_new(&eiter, bm, BM_EDGES_OF_FACE, f); e; e = BM_iter_step(&eiter))
|
for (e = BM_iter_new(&eiter, bm, BM_EDGES_OF_FACE, f); e; e = BM_iter_step(&eiter))
|
||||||
@@ -847,7 +847,7 @@ void BM_elem_attrs_copy(BMesh *source_mesh, BMesh *target_mesh, const void *sour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* helper functioon for 'BM_mesh_copy' */
|
/* helper function for 'BM_mesh_copy' */
|
||||||
static BMFace *bm_mesh_copy_new_face(BMesh *bm_new, BMesh *bm_old,
|
static BMFace *bm_mesh_copy_new_face(BMesh *bm_new, BMesh *bm_old,
|
||||||
BMVert **vtable, BMEdge **etable,
|
BMVert **vtable, BMEdge **etable,
|
||||||
BMFace *f)
|
BMFace *f)
|
||||||
@@ -923,7 +923,8 @@ BMesh *BM_mesh_copy(BMesh *bm_old)
|
|||||||
ftable = MEM_mallocN(sizeof(BMFace *) * bm_old->totface, "BM_mesh_copy ftable");
|
ftable = MEM_mallocN(sizeof(BMFace *) * bm_old->totface, "BM_mesh_copy ftable");
|
||||||
|
|
||||||
BM_ITER_MESH_INDEX (v, &iter, bm_old, BM_VERTS_OF_MESH, i) {
|
BM_ITER_MESH_INDEX (v, &iter, bm_old, BM_VERTS_OF_MESH, i) {
|
||||||
v_new = BM_vert_create(bm_new, v->co, NULL, BM_CREATE_SKIP_CD); /* copy between meshes so cant use 'example' argument */
|
/* copy between meshes so cant use 'example' argument */
|
||||||
|
v_new = BM_vert_create(bm_new, v->co, NULL, BM_CREATE_SKIP_CD);
|
||||||
BM_elem_attrs_copy(bm_old, bm_new, v, v_new);
|
BM_elem_attrs_copy(bm_old, bm_new, v, v_new);
|
||||||
vtable[i] = v_new;
|
vtable[i] = v_new;
|
||||||
BM_elem_index_set(v, i); /* set_inline */
|
BM_elem_index_set(v, i); /* set_inline */
|
||||||
|
@@ -99,7 +99,7 @@ typedef struct VMesh {
|
|||||||
M_ADJ, /* "adjacent edges" mesh pattern */
|
M_ADJ, /* "adjacent edges" mesh pattern */
|
||||||
M_ADJ_SUBDIV, /* like M_ADJ, but using subdivision */
|
M_ADJ_SUBDIV, /* like M_ADJ, but using subdivision */
|
||||||
M_TRI_FAN, /* a simple polygon - fan filled */
|
M_TRI_FAN, /* a simple polygon - fan filled */
|
||||||
M_QUAD_STRIP, /* a simple polygon - cut into paralelle strips */
|
M_QUAD_STRIP, /* a simple polygon - cut into parallel strips */
|
||||||
} mesh_kind;
|
} mesh_kind;
|
||||||
// int _pad;
|
// int _pad;
|
||||||
} VMesh;
|
} VMesh;
|
||||||
|
@@ -541,7 +541,8 @@ short copy_animedit_keys(bAnimContext *ac, ListBase *anim_data)
|
|||||||
BLI_addtail(&animcopybuf, aci);
|
BLI_addtail(&animcopybuf, aci);
|
||||||
|
|
||||||
/* add selected keyframes to buffer */
|
/* add selected keyframes to buffer */
|
||||||
// TODO: currently, we resize array everytime we add a new vert - this works ok as long as it is assumed only a few keys are copied
|
/* TODO: currently, we resize array every time we add a new vert -
|
||||||
|
* this works ok as long as it is assumed only a few keys are copied */
|
||||||
for (i = 0, bezt = fcu->bezt; i < fcu->totvert; i++, bezt++) {
|
for (i = 0, bezt = fcu->bezt; i < fcu->totvert; i++, bezt++) {
|
||||||
if (BEZSELECTED(bezt)) {
|
if (BEZSELECTED(bezt)) {
|
||||||
/* add to buffer */
|
/* add to buffer */
|
||||||
|
@@ -410,7 +410,7 @@ void ED_view3d_win_to_3d(const ARegion *ar, const float depth_pt[3], const float
|
|||||||
add_v3_v3v3(line_end, line_sta, mousevec);
|
add_v3_v3v3(line_end, line_sta, mousevec);
|
||||||
|
|
||||||
if (isect_line_plane_v3(out, line_sta, line_end, depth_pt, rv3d->viewinv[2], true) == 0) {
|
if (isect_line_plane_v3(out, line_sta, line_end, depth_pt, rv3d->viewinv[2], true) == 0) {
|
||||||
/* highly unlikely to ever happen, mouse vec paralelle with view plane */
|
/* highly unlikely to ever happen, mouse vector parallel with view plane */
|
||||||
zero_v3(out);
|
zero_v3(out);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user