Cleanup: spelling in comments
This commit is contained in:
parent
3b726cfee8
commit
ed24b7d9a2
|
@ -326,7 +326,7 @@ static float dvar_eval_rotDiff(ChannelDriver *driver, DriverVar *dvar)
|
|||
|
||||
float(*mat[2])[4];
|
||||
|
||||
/* NOTE: for now, these are all just worldspace */
|
||||
/* NOTE: for now, these are all just world-space. */
|
||||
for (int i = 0; i < 2; i++) {
|
||||
/* Get pointer to loc values to store in. */
|
||||
DriverTarget *dtar = &dvar->targets[i];
|
||||
|
|
|
@ -1896,8 +1896,8 @@ void BKE_mesh_calc_normals_split_ex(Mesh *mesh, MLoopNorSpaceArray *r_lnors_spac
|
|||
bool free_polynors = false;
|
||||
|
||||
/* Note that we enforce computing clnors when the clnor space array is requested by caller here.
|
||||
* However, we obviously only use the autosmooth angle threshold
|
||||
* only in case autosmooth is enabled. */
|
||||
* However, we obviously only use the auto-smooth angle threshold
|
||||
* only in case auto-smooth is enabled. */
|
||||
const bool use_split_normals = (r_lnors_spacearr != nullptr) ||
|
||||
((mesh->flag & ME_AUTOSMOOTH) != 0);
|
||||
const float split_angle = (mesh->flag & ME_AUTOSMOOTH) != 0 ? mesh->smoothresh : (float)M_PI;
|
||||
|
|
|
@ -5445,7 +5445,7 @@ KDTree_3d *BKE_object_as_kdtree(Object *ob, int *r_tot)
|
|||
MVert *mvert = me_eval->mvert;
|
||||
uint totvert = me_eval->totvert;
|
||||
|
||||
/* tree over-allocs in case where some verts have ORIGINDEX_NONE */
|
||||
/* Tree over-allocates in case where some verts have #ORIGINDEX_NONE. */
|
||||
tot = 0;
|
||||
tree = BLI_kdtree_3d_new(totvert);
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ void bmo_edgeloop_fill_exec(BMesh *bm, BMOperator *op)
|
|||
}
|
||||
|
||||
if (ok) {
|
||||
/* NOTE: in the case of multiple loops, this over-allocs (which is fine). */
|
||||
/* NOTE: in the case of multiple loops, this over-allocates (which is fine). */
|
||||
BMVert **f_verts = MEM_mallocN(sizeof(*verts) * totv, __func__);
|
||||
BMIter eiter;
|
||||
|
||||
|
|
|
@ -997,7 +997,7 @@ void ED_spacetype_sequencer(void)
|
|||
art->draw_overlay = sequencer_main_region_draw_overlay;
|
||||
art->listener = sequencer_main_region_listener;
|
||||
art->message_subscribe = sequencer_main_region_message_subscribe;
|
||||
/* NOTE: inclusion of #ED_KEYMAP_GIZMO is currenlty for scripts and isn't used by default. */
|
||||
/* NOTE: inclusion of #ED_KEYMAP_GIZMO is currently for scripts and isn't used by default. */
|
||||
art->keymapflag = ED_KEYMAP_TOOL | ED_KEYMAP_GIZMO | ED_KEYMAP_VIEW2D | ED_KEYMAP_FRAMES |
|
||||
ED_KEYMAP_ANIMATION;
|
||||
BLI_addhead(&st->regiontypes, art);
|
||||
|
|
|
@ -1682,7 +1682,8 @@ bool ED_view3d_depth_read_cached(const ViewDepths *vd,
|
|||
return true;
|
||||
}
|
||||
|
||||
/* GPencil and Anotations also need the returned depth value to be high so that it is invalid. */
|
||||
/* Grease-pencil and annotations also need the returned depth value to be high
|
||||
* so the caller can detect it's invalid. */
|
||||
*r_depth = FLT_MAX;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue