Cleanup: spelling in comments
This commit is contained in:
parent
e2a411570e
commit
6deb37474e
|
@ -69,7 +69,7 @@ typedef struct BVHTreeFromMesh {
|
|||
BVHTree_NearestPointCallback nearest_callback;
|
||||
BVHTree_RayCastCallback raycast_callback;
|
||||
|
||||
/* Vertex array, so that callbacks have instante access to data */
|
||||
/* Vertex array, so that callbacks have instant access to data. */
|
||||
const struct MVert *vert;
|
||||
const struct MEdge *edge; /* only used for BVHTreeFromMeshEdges */
|
||||
const struct MFace *face;
|
||||
|
|
|
@ -282,7 +282,7 @@ static int ui_layout_vary_direction(uiLayout *layout)
|
|||
|
||||
static bool ui_layout_variable_size(uiLayout *layout)
|
||||
{
|
||||
/* Note that this code is probably a bit flakey, we'd probably want to know whether it's
|
||||
/* Note that this code is probably a bit flaky, we'd probably want to know whether it's
|
||||
* variable in X and/or Y, etc. But for now it mimics previous one,
|
||||
* with addition of variable flag set for children of grid-flow layouts. */
|
||||
return ui_layout_vary_direction(layout) == UI_ITEM_VARY_X || layout->variable_size;
|
||||
|
|
|
@ -845,7 +845,7 @@ static void id_override_library_create_fn(bContext *C,
|
|||
if (!ID_IS_LINKED(te->store_elem->id)) {
|
||||
break;
|
||||
}
|
||||
/* If we'd need to override that arent ID, but it is not overridable, abort. */
|
||||
/* If we'd need to override that aren't ID, but it is not overridable, abort. */
|
||||
if (!ID_IS_OVERRIDABLE_LIBRARY(te->store_elem->id)) {
|
||||
BKE_main_id_tag_all(bmain, LIB_TAG_DOIT, false);
|
||||
BKE_reportf(reports,
|
||||
|
|
|
@ -155,7 +155,7 @@ void bpy_context_clear(bContext *UNUSED(C), const PyGILState_STATE *gilstate)
|
|||
}
|
||||
else if (py_call_level == 0) {
|
||||
/* XXX: Calling classes currently won't store the context :\,
|
||||
* can't set NULL because of this. but this is very flakey still. */
|
||||
* can't set NULL because of this. but this is very flaky still. */
|
||||
#if 0
|
||||
BPY_context_set(NULL);
|
||||
#endif
|
||||
|
|
|
@ -227,7 +227,7 @@ static PyObject *bpy_user_map(PyObject *UNUSED(self), PyObject *args, PyObject *
|
|||
}
|
||||
|
||||
if (!data_cb.is_subset &&
|
||||
/* We do not want to pre-add keys of flitered out types. */
|
||||
/* We do not want to pre-add keys of filtered out types. */
|
||||
(key_types_bitmap == NULL || id_check_type(id, key_types_bitmap)) &&
|
||||
/* We do not want to pre-add keys when we have filter on value types,
|
||||
* but not on key types. */
|
||||
|
|
|
@ -1926,7 +1926,7 @@ static PyObject *Vector_imatmul(PyObject *v1, PyObject *v2)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/* divid: obj / obj */
|
||||
/* divide: obj / obj */
|
||||
static PyObject *Vector_div(PyObject *v1, PyObject *v2)
|
||||
{
|
||||
float *vec = NULL, scalar;
|
||||
|
@ -2939,7 +2939,7 @@ static int row_vector_multiplication(float r_vec[MAX_DIMENSIONS],
|
|||
memcpy(vec_cpy, vec->vec, vec_size * sizeof(float));
|
||||
|
||||
r_vec[3] = 1.0f;
|
||||
/* muliplication */
|
||||
/* Multiplication. */
|
||||
for (col = 0; col < mat->num_col; col++) {
|
||||
double dot = 0.0;
|
||||
for (row = 0; row < mat->num_row; row++) {
|
||||
|
|
|
@ -201,7 +201,7 @@ static PyObject *M_Geometry_intersect_line_line(PyObject *UNUSED(self), PyObject
|
|||
}
|
||||
|
||||
if (result == 0) {
|
||||
/* collinear */
|
||||
/* Co-linear. */
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue