bad spelling; 'indicies' --> 'indices'
This commit is contained in:
@@ -190,7 +190,7 @@ def extend(obj, operator, EXTEND_MODE):
|
||||
# Done finding seams
|
||||
|
||||
# face connectivity - faces around each face
|
||||
# only store a list of indicies for each face.
|
||||
# only store a list of indices for each face.
|
||||
face_faces = [[] for i in range(len(face_sel))]
|
||||
|
||||
for edge_key, faces in edge_faces.items():
|
||||
|
||||
@@ -2237,7 +2237,7 @@ static void mesh_build_data(Scene *scene, Object *ob, CustomDataMask dataMask)
|
||||
{
|
||||
Object *obact = scene->basact?scene->basact->object:NULL;
|
||||
int editing = paint_facesel_test(ob);
|
||||
/* weight paint and face select need original indicies because of selection buffer drawing */
|
||||
/* weight paint and face select need original indices because of selection buffer drawing */
|
||||
int needMapping = (ob==obact) && (editing || (ob->mode & (OB_MODE_WEIGHT_PAINT|OB_MODE_VERTEX_PAINT)));
|
||||
|
||||
clear_mesh_caches(ob);
|
||||
|
||||
@@ -221,7 +221,7 @@ FCurve *list_find_fcurve (ListBase *list, const char rna_path[], const int array
|
||||
for (fcu= list->first; fcu; fcu= fcu->next) {
|
||||
/* simple string-compare (this assumes that they have the same root...) */
|
||||
if (fcu->rna_path && !strcmp(fcu->rna_path, rna_path)) {
|
||||
/* now check indicies */
|
||||
/* now check indices */
|
||||
if (fcu->array_index == array_index)
|
||||
return fcu;
|
||||
}
|
||||
|
||||
@@ -315,7 +315,7 @@ static const char *constraint_adrcodes_to_paths (int adrcode, int *array_index)
|
||||
|
||||
/* ShapeKey types
|
||||
* NOTE: as we don't have access to the keyblock where the data comes from (for now),
|
||||
* we'll just use numerical indicies for now...
|
||||
* we'll just use numerical indices for now...
|
||||
*/
|
||||
static char *shapekey_adrcodes_to_paths (int adrcode, int *UNUSED(array_index))
|
||||
{
|
||||
|
||||
@@ -155,7 +155,7 @@ void boxPack2D(boxPack *boxarray, int len, float *tot_width, float *tot_height)
|
||||
int box_index, verts_pack_len, i, j, k, isect;
|
||||
int quad_flags[4]= {BLF,TRF,TLF,BRF}; /* use for looping */
|
||||
boxPack *box, *box_test; /*current box and another for intersection tests*/
|
||||
int *vertex_pack_indicies; /*an array of indices used for sorting verts*/
|
||||
int *vertex_pack_indices; /*an array of indices used for sorting verts*/
|
||||
|
||||
if (!len) {
|
||||
*tot_width = 0.0f;
|
||||
@@ -168,7 +168,7 @@ void boxPack2D(boxPack *boxarray, int len, float *tot_width, float *tot_height)
|
||||
|
||||
/* add verts to the boxes, these are only used internally */
|
||||
vert = vertarray = MEM_mallocN( len*4*sizeof(boxVert), "boxPack Verts");
|
||||
vertex_pack_indicies = MEM_mallocN( len*3*sizeof(int), "boxPack Indices");
|
||||
vertex_pack_indices = MEM_mallocN( len*3*sizeof(int), "boxPack Indices");
|
||||
|
||||
for (box=boxarray, box_index=0, i=0; box_index < len; box_index++, box++) {
|
||||
|
||||
@@ -225,7 +225,7 @@ void boxPack2D(boxPack *boxarray, int len, float *tot_width, float *tot_height)
|
||||
box->x = box->y = 0.0f;
|
||||
|
||||
for (i=0; i<3; i++)
|
||||
vertex_pack_indicies[i] = box->v[i+1]->index;
|
||||
vertex_pack_indices[i] = box->v[i+1]->index;
|
||||
verts_pack_len = 3;
|
||||
box++; /* next box, needed for the loop below */
|
||||
/* ...done packing the first box */
|
||||
@@ -237,14 +237,14 @@ void boxPack2D(boxPack *boxarray, int len, float *tot_width, float *tot_height)
|
||||
box_width = box->w;
|
||||
box_height = box->h;
|
||||
|
||||
qsort(vertex_pack_indicies, verts_pack_len, sizeof(int), vertex_sort);
|
||||
qsort(vertex_pack_indices, verts_pack_len, sizeof(int), vertex_sort);
|
||||
|
||||
/* Pack the box in with the others */
|
||||
/* sort the verts */
|
||||
isect = 1;
|
||||
|
||||
for (i=0; i<verts_pack_len && isect; i++) {
|
||||
vert = vertarray + vertex_pack_indicies[i];
|
||||
vert = vertarray + vertex_pack_indices[i];
|
||||
/* printf("\ttesting vert %i %i %i %f %f\n", i,
|
||||
* vert->free, verts_pack_len, vert->x, vert->y); */
|
||||
|
||||
@@ -401,7 +401,7 @@ void boxPack2D(boxPack *boxarray, int len, float *tot_width, float *tot_height)
|
||||
|
||||
for (k=0; k<4; k++) {
|
||||
if (box->v[k] != vert) {
|
||||
vertex_pack_indicies[verts_pack_len] =
|
||||
vertex_pack_indices[verts_pack_len] =
|
||||
box->v[k]->index;
|
||||
verts_pack_len++;
|
||||
}
|
||||
@@ -423,7 +423,7 @@ void boxPack2D(boxPack *boxarray, int len, float *tot_width, float *tot_height)
|
||||
box = boxarray+box_index;
|
||||
box->v[0] = box->v[1] = box->v[2] = box->v[3] = NULL;
|
||||
}
|
||||
MEM_freeN(vertex_pack_indicies);
|
||||
MEM_freeN(vertex_pack_indices);
|
||||
MEM_freeN(vertarray);
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ short ANIM_get_keyframing_flags (Scene *scene, short incl_mode)
|
||||
if (IS_AUTOKEY_FLAG(INSERTNEEDED))
|
||||
flag |= INSERTKEY_NEEDED;
|
||||
|
||||
/* default F-Curve color mode - RGB from XYZ indicies */
|
||||
/* default F-Curve color mode - RGB from XYZ indices */
|
||||
if (IS_AUTOKEY_FLAG(XYZ2RGB))
|
||||
flag |= INSERTKEY_XYZ2RGB;
|
||||
}
|
||||
|
||||
@@ -500,7 +500,7 @@ void ANIM_OT_keying_set_active_set (wmOperatorType *ot)
|
||||
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
|
||||
|
||||
/* keyingset to use
|
||||
* - here the type is int not enum, since many of the indicies here are determined dynamically
|
||||
* - here the type is int not enum, since many of the indices here are determined dynamically
|
||||
*/
|
||||
RNA_def_int(ot->srna, "type", 0, INT_MIN, INT_MAX, "Keying Set Number", "Index (determined internally) of the Keying Set to use", 0, 1);
|
||||
}
|
||||
|
||||
@@ -2184,7 +2184,7 @@ static int smooth_radius_exec(bContext *C, wmOperator *UNUSED(op))
|
||||
|
||||
/* use for smoothing */
|
||||
int last_sel;
|
||||
int start_sel, end_sel; /* selection indicies, inclusive */
|
||||
int start_sel, end_sel; /* selection indices, inclusive */
|
||||
float start_rad, end_rad, fac, range;
|
||||
|
||||
for(nu= editnurb->first; nu; nu= nu->next) {
|
||||
|
||||
@@ -2442,7 +2442,7 @@ void EM_make_hq_normals(EditMesh *em)
|
||||
|
||||
|
||||
for(edge_iter = BLI_edgehashIterator_new(edge_hash); !BLI_edgehashIterator_isDone(edge_iter); BLI_edgehashIterator_step(edge_iter)) {
|
||||
/* Get the edge vert indicies, and edge value (the face indicies that use it)*/
|
||||
/* Get the edge vert indices, and edge value (the face indices that use it)*/
|
||||
BLI_edgehashIterator_getKey(edge_iter, (int*)&ed_v1, (int*)&ed_v2);
|
||||
edge_ref = BLI_edgehashIterator_getValue(edge_iter);
|
||||
|
||||
|
||||
@@ -1938,7 +1938,7 @@ void OBJECT_OT_vertex_group_copy_to_selected(wmOperatorType *ot)
|
||||
/* identifiers */
|
||||
ot->name= "Copy Vertex Group to Selected";
|
||||
ot->idname= "OBJECT_OT_vertex_group_copy_to_selected";
|
||||
ot->description= "Copy Vertex Groups to other selected objects with matching indicies";
|
||||
ot->description= "Copy Vertex Groups to other selected objects with matching indices";
|
||||
|
||||
/* api callbacks */
|
||||
ot->poll= vertex_group_poll;
|
||||
|
||||
@@ -936,7 +936,7 @@ static int pixel_bounds_array(float (* uv)[2], rcti *bounds_px, const int ibuf_x
|
||||
|
||||
#ifndef PROJ_DEBUG_NOSEAMBLEED
|
||||
|
||||
/* This function returns 1 if this face has a seam along the 2 face-vert indicies
|
||||
/* This function returns 1 if this face has a seam along the 2 face-vert indices
|
||||
* 'orig_i1_fidx' and 'orig_i2_fidx' */
|
||||
static int check_seam(const ProjPaintState *ps, const int orig_face, const int orig_i1_fidx, const int orig_i2_fidx, int *other_face, int *orig_fidx)
|
||||
{
|
||||
@@ -949,7 +949,7 @@ static int check_seam(const ProjPaintState *ps, const int orig_face, const int o
|
||||
const MFace *orig_mf = ps->dm_mface + orig_face;
|
||||
const MTFace *orig_tf = ps->dm_mtface + orig_face;
|
||||
|
||||
/* vert indicies from face vert order indicies */
|
||||
/* vert indices from face vert order indices */
|
||||
i1 = (*(&orig_mf->v1 + orig_i1_fidx));
|
||||
i2 = (*(&orig_mf->v1 + orig_i2_fidx));
|
||||
|
||||
@@ -2577,7 +2577,7 @@ static void project_paint_face_init(const ProjPaintState *ps, const int thread_i
|
||||
}
|
||||
|
||||
|
||||
/* takes floating point screenspace min/max and returns int min/max to be used as indicies for ps->bucketRect, ps->bucketFlags */
|
||||
/* takes floating point screenspace min/max and returns int min/max to be used as indices for ps->bucketRect, ps->bucketFlags */
|
||||
static void project_paint_bucket_bounds(const ProjPaintState *ps, const float min[2], const float max[2], int bucketMin[2], int bucketMax[2])
|
||||
{
|
||||
/* divide by bucketWidth & bucketHeight so the bounds are offset in bucket grid units */
|
||||
|
||||
@@ -880,7 +880,7 @@ static void select_linked(Scene *scene, Image *ima, EditMesh *em, float limit[2]
|
||||
nverts= efa->v4? 4: 3;
|
||||
|
||||
for(i=0; i<nverts; i++) {
|
||||
/* make_uv_vert_map_EM sets verts tmp.l to the indicies */
|
||||
/* make_uv_vert_map_EM sets verts tmp.l to the indices */
|
||||
vlist= EM_get_uv_map_vert(vmap, (*(&efa->v1 + i))->tmp.l);
|
||||
|
||||
startv= vlist;
|
||||
@@ -2452,7 +2452,7 @@ static int snap_uvs_to_adjacent_unselected(Scene *scene, Image *ima, Object *obe
|
||||
eve->tmp.l=-1;
|
||||
|
||||
/* index every vert that has a selected UV using it, but only once so as to
|
||||
* get unique indicies and to count how much to malloc */
|
||||
* get unique indices and to count how much to malloc */
|
||||
for(efa= em->faces.first; efa; efa= efa->next) {
|
||||
tface= CustomData_em_get(&em->fdata, efa->data, CD_MTFACE);
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ ParamHandle *construct_param_handle(Scene *scene, EditMesh *em, short implicit,
|
||||
}
|
||||
}
|
||||
|
||||
/* we need the vert indicies */
|
||||
/* we need the vert indices */
|
||||
for(ev= em->verts.first, a=0; ev; ev= ev->next, a++)
|
||||
ev->tmp.l = a;
|
||||
|
||||
|
||||
@@ -948,7 +948,7 @@ static char *rna_def_property_begin_func(FILE *f, StructRNA *srna, PropertyRNA *
|
||||
|
||||
static char *rna_def_property_lookup_int_func(FILE *f, StructRNA *srna, PropertyRNA *prop, PropertyDefRNA *dp, char *manualfunc, char *nextfunc)
|
||||
{
|
||||
/* note on indicies, this is for external functions and ignores skipped values.
|
||||
/* note on indices, this is for external functions and ignores skipped values.
|
||||
* so the the index can only be checked against the length when there is no 'skip' funcion. */
|
||||
char *func;
|
||||
|
||||
|
||||
@@ -325,11 +325,11 @@ typedef struct ArrayIterator {
|
||||
void *free_ptr; /* will be free'd if set */
|
||||
int itemsize;
|
||||
|
||||
/* array length with no skip functins applied, take care not to compare against index from animsys or python indicies */
|
||||
/* array length with no skip functins applied, take care not to compare against index from animsys or python indices */
|
||||
int length;
|
||||
|
||||
/* optional skip function, when set the array as viewed by rna can contain only a subset of the members.
|
||||
* this changes indicies so quick array index lookups are not possible when skip function is used. */
|
||||
* this changes indices so quick array index lookups are not possible when skip function is used. */
|
||||
IteratorSkipFunc skip;
|
||||
} ArrayIterator;
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
|
||||
return derivedData;
|
||||
|
||||
/* hashes for finding mapping of:
|
||||
* - vgroups to indicies -> vgroupHash (string, int)
|
||||
* - vgroups to indices -> vgroupHash (string, int)
|
||||
* - bones to vgroup indices -> boneHash (index of vgroup, dummy)
|
||||
*/
|
||||
vgroupHash= BLI_ghash_new(BLI_ghashutil_strhash, BLI_ghashutil_strcmp, "mask vgroup gh");
|
||||
|
||||
@@ -127,7 +127,7 @@ static void dm_calc_normal(DerivedMesh *dm, float (*temp_nors)[3])
|
||||
}
|
||||
|
||||
for(edge_iter = BLI_edgehashIterator_new(edge_hash); !BLI_edgehashIterator_isDone(edge_iter); BLI_edgehashIterator_step(edge_iter)) {
|
||||
/* Get the edge vert indicies, and edge value (the face indicies that use it)*/
|
||||
/* Get the edge vert indices, and edge value (the face indices that use it)*/
|
||||
BLI_edgehashIterator_getKey(edge_iter, (int*)&ed_v1, (int*)&ed_v2);
|
||||
edge_ref = BLI_edgehashIterator_getValue(edge_iter);
|
||||
|
||||
|
||||
@@ -332,7 +332,7 @@ static PyObject *M_Geometry_area_tri(PyObject *UNUSED(self), PyObject* args)
|
||||
static char M_Geometry_tesselate_polygon_doc[] =
|
||||
".. function:: tesselate_polygon(veclist_list)\n"
|
||||
"\n"
|
||||
" Takes a list of polylines (each point a vector) and returns the point indicies for a polyline filled with triangles.\n"
|
||||
" Takes a list of polylines (each point a vector) and returns the point indices for a polyline filled with triangles.\n"
|
||||
"\n"
|
||||
" :arg veclist_list: list of polylines\n"
|
||||
" :rtype: list\n"
|
||||
|
||||
@@ -2213,7 +2213,7 @@ static char pyrna_struct_keyframe_insert_doc[] =
|
||||
"\n"
|
||||
" :arg data_path: path to the property to key, analogous to the fcurve's data path.\n"
|
||||
" :type data_path: string\n"
|
||||
" :arg index: array index of the property to key. Defaults to -1 which will key all indicies or a single channel if the property is not an array.\n"
|
||||
" :arg index: array index of the property to key. Defaults to -1 which will key all indices or a single channel if the property is not an array.\n"
|
||||
" :type index: int\n"
|
||||
" :arg frame: The frame on which the keyframe is inserted, defaulting to the current frame.\n"
|
||||
" :type frame: float\n"
|
||||
@@ -2256,7 +2256,7 @@ static char pyrna_struct_keyframe_delete_doc[] =
|
||||
"\n"
|
||||
" :arg data_path: path to the property to remove a key, analogous to the fcurve's data path.\n"
|
||||
" :type data_path: string\n"
|
||||
" :arg index: array index of the property to remove a key. Defaults to -1 removing all indicies or a single channel if the property is not an array.\n"
|
||||
" :arg index: array index of the property to remove a key. Defaults to -1 removing all indices or a single channel if the property is not an array.\n"
|
||||
" :type index: int\n"
|
||||
" :arg frame: The frame on which the keyframe is deleted, defaulting to the current frame.\n"
|
||||
" :type frame: float\n"
|
||||
@@ -2300,7 +2300,7 @@ static char pyrna_struct_driver_add_doc[] =
|
||||
"\n"
|
||||
" :arg path: path to the property to drive, analogous to the fcurve's data path.\n"
|
||||
" :type path: string\n"
|
||||
" :arg index: array index of the property drive. Defaults to -1 for all indicies or a single channel if the property is not an array.\n"
|
||||
" :arg index: array index of the property drive. Defaults to -1 for all indices or a single channel if the property is not an array.\n"
|
||||
" :type index: int\n"
|
||||
" :return: The driver(s) added.\n"
|
||||
" :rtype: :class:`FCurve` or list if index is -1 with an array property.";
|
||||
@@ -2372,7 +2372,7 @@ static char pyrna_struct_driver_remove_doc[] =
|
||||
"\n"
|
||||
" :arg path: path to the property to drive, analogous to the fcurve's data path.\n"
|
||||
" :type path: string\n"
|
||||
" :arg index: array index of the property drive. Defaults to -1 for all indicies or a single channel if the property is not an array.\n"
|
||||
" :arg index: array index of the property drive. Defaults to -1 for all indices or a single channel if the property is not an array.\n"
|
||||
" :type index: int\n"
|
||||
" :return: Success of driver removal.\n"
|
||||
" :rtype: boolean";
|
||||
|
||||
@@ -296,7 +296,7 @@ PyAttributeDef SCA_JoystickSensor::Attributes[] = {
|
||||
/* get button active list -------------------------------------------------- */
|
||||
const char SCA_JoystickSensor::GetButtonActiveList_doc[] =
|
||||
"getButtonActiveList\n"
|
||||
"\tReturns a list containing the indicies of the button currently pressed.\n";
|
||||
"\tReturns a list containing the indices of the button currently pressed.\n";
|
||||
PyObject* SCA_JoystickSensor::PyGetButtonActiveList( ) {
|
||||
SCA_Joystick *joy = ((SCA_JoystickManager *)m_eventmgr)->GetJoystickDevice(m_joyindex);
|
||||
PyObject *ls = PyList_New(0);
|
||||
|
||||
@@ -181,7 +181,7 @@ PyObject* KX_MeshProxy::PyGetVertex(PyObject* args, PyObject* kwds)
|
||||
RAS_TexVert* vertex = m_meshobj->GetVertex(matindex,vertexindex);
|
||||
|
||||
if(vertex==NULL) {
|
||||
PyErr_SetString(PyExc_ValueError, "mesh.getVertex(mat_idx, vert_idx): KX_MeshProxy, could not get a vertex at the given indicies");
|
||||
PyErr_SetString(PyExc_ValueError, "mesh.getVertex(mat_idx, vert_idx): KX_MeshProxy, could not get a vertex at the given indices");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user