Cleanup: spelling in comments
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
#include <stdio.h> /* for fprintf only */
|
||||
#include <vector>
|
||||
|
||||
/* for debugging - so we can breakpoint X11 errors */
|
||||
/* For debugging, so we can break-point X11 errors. */
|
||||
// #define USE_X11_ERROR_HANDLERS
|
||||
|
||||
#ifdef WITH_X11_XINPUT
|
||||
@@ -2492,7 +2492,7 @@ GHOST_TSuccess GHOST_SystemX11::pushDragDropEvent(GHOST_TEventType eventType,
|
||||
}
|
||||
#endif
|
||||
/**
|
||||
* These callbacks can be used for debugging, so we can breakpoint on an X11 error.
|
||||
* These callbacks can be used for debugging, so we can break-point on an X11 error.
|
||||
*
|
||||
* Dummy function to get around IO Handler exiting if device invalid
|
||||
* Basically it will not crash blender now if you have a X device that
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
# define DEBUG_MEMCOUNTER_ERROR_VAL 0
|
||||
static int _mallocn_count = 0;
|
||||
|
||||
/* breakpoint here */
|
||||
/* Break-point here. */
|
||||
static void memcount_raise(const char *name)
|
||||
{
|
||||
fprintf(stderr, "%s: memcount-leak, %d\n", name, _mallocn_count);
|
||||
|
||||
@@ -400,7 +400,7 @@ typedef struct LooseDataInstantiateContext {
|
||||
static bool object_in_any_scene(Main *bmain, Object *ob)
|
||||
{
|
||||
LISTBASE_FOREACH (Scene *, sce, &bmain->scenes) {
|
||||
/* #BKE_scene_has_object checks bases cache of the scenes' viewlayer, not actual content of
|
||||
/* #BKE_scene_has_object checks bases cache of the scenes' view-layer, not actual content of
|
||||
* their collections. */
|
||||
if (BKE_collection_has_object_recursive(sce->master_collection, ob)) {
|
||||
return true;
|
||||
|
||||
@@ -1192,8 +1192,8 @@ bool ED_mesh_pick_face(bContext *C, Object *ob, const int mval[2], uint dist_px,
|
||||
ED_view3d_select_id_validate(&vc);
|
||||
|
||||
if (dist_px) {
|
||||
/* sample rect to increase chances of selecting, so that when clicking
|
||||
* on an edge in the backbuf, we can still select a face */
|
||||
/* Sample rect to increase chances of selecting, so that when clicking
|
||||
* on an edge in the back-buffer, we can still select a face. */
|
||||
*r_index = DRW_select_buffer_find_nearest_to_point(
|
||||
vc.depsgraph, vc.region, vc.v3d, mval, 1, me->totpoly + 1, &dist_px);
|
||||
}
|
||||
|
||||
@@ -1003,12 +1003,12 @@ void MOD_lineart_smooth_chains(LineartRenderBuffer *rb, float tolerance)
|
||||
len2 = len_v2(vec2);
|
||||
/* Because this smoothing applies on geometries of different scales in the same scene,
|
||||
* some small scale features (e.g. the "tails" on the inner ring of a torus geometry)
|
||||
* could be completely erased if the tolerance value is set for accomondating the entire
|
||||
* could be completely erased if the tolerance value is set for accommodating the entire
|
||||
* scene. Those situations typically result in (ratio << 0), looks like this:
|
||||
* 1---2
|
||||
* 3-------------------------------4
|
||||
* (this sort of long zig zag obviously are "features" that can't be erased)
|
||||
* setting a ratio of -10 turned out to be a reasonabe threshold in tests. */
|
||||
* (this sort of long zigzag obviously are "features" that can't be erased)
|
||||
* setting a ratio of -10 turned out to be a reasonable threshold in tests. */
|
||||
if (ratio < len2 && ratio > -len2 * 10) {
|
||||
/* We only remove p3 if p4 is on the extension of p1->p2. */
|
||||
if ((eci4 = eci3->next) &&
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
/**
|
||||
* Empty function, use for breakpoint when a deprecated
|
||||
* Empty function, use for break-point when a deprecated
|
||||
* OpenGL function is called.
|
||||
*/
|
||||
static void gl_deprecated(void)
|
||||
|
||||
@@ -806,8 +806,8 @@ static void blendWrite(BlendWriter *writer, const ID *id_owner, const ModifierDa
|
||||
BLI_assert(!ID_IS_LINKED(id_owner));
|
||||
const bool is_local = (md->flag & eModifierFlag_OverrideLibrary_Local) != 0;
|
||||
if (!is_local) {
|
||||
/* Modifier comming from linked data cannot be bound from an override, so we can remove all
|
||||
* binding data, can save a sgnificant amout of memory. */
|
||||
/* Modifier coming from linked data cannot be bound from an override, so we can remove all
|
||||
* binding data, can save a significant amount of memory. */
|
||||
csmd.bind_coords_num = 0;
|
||||
csmd.bind_coords = NULL;
|
||||
}
|
||||
|
||||
@@ -851,8 +851,8 @@ static void blendWrite(BlendWriter *writer, const ID *id_owner, const ModifierDa
|
||||
BLI_assert(!ID_IS_LINKED(id_owner));
|
||||
const bool is_local = (md->flag & eModifierFlag_OverrideLibrary_Local) != 0;
|
||||
if (!is_local) {
|
||||
/* Modifier comming from linked data cannot be bound from an override, so we can remove all
|
||||
* binding data, can save a sgnificant amout of memory. */
|
||||
/* Modifier coming from linked data cannot be bound from an override, so we can remove all
|
||||
* binding data, can save a significant amount of memory. */
|
||||
lmd.verts_num = 0;
|
||||
lmd.vertexco = NULL;
|
||||
}
|
||||
|
||||
@@ -589,8 +589,8 @@ static void blendWrite(BlendWriter *writer, const ID *id_owner, const ModifierDa
|
||||
BLI_assert(!ID_IS_LINKED(id_owner));
|
||||
const bool is_local = (md->flag & eModifierFlag_OverrideLibrary_Local) != 0;
|
||||
if (!is_local) {
|
||||
/* Modifier comming from linked data cannot be bound from an override, so we can remove all
|
||||
* binding data, can save a sgnificant amout of memory. */
|
||||
/* Modifier coming from linked data cannot be bound from an override, so we can remove all
|
||||
* binding data, can save a significant amount of memory. */
|
||||
mmd.influences_num = 0;
|
||||
mmd.bindinfluences = NULL;
|
||||
mmd.verts_num = 0;
|
||||
|
||||
@@ -1677,8 +1677,8 @@ static void blendWrite(BlendWriter *writer, const ID *id_owner, const ModifierDa
|
||||
BLI_assert(!ID_IS_LINKED(id_owner));
|
||||
const bool is_local = (md->flag & eModifierFlag_OverrideLibrary_Local) != 0;
|
||||
if (!is_local) {
|
||||
/* Modifier comming from linked data cannot be bound from an override, so we can remove all
|
||||
* binding data, can save a sgnificant amout of memory. */
|
||||
/* Modifier coming from linked data cannot be bound from an override, so we can remove all
|
||||
* binding data, can save a significant amount of memory. */
|
||||
smd.bind_verts_num = 0;
|
||||
smd.verts = NULL;
|
||||
}
|
||||
|
||||
@@ -1279,9 +1279,8 @@ static PyObject *BPy_IDGroup_pop(BPy_IDProperty *self, PyObject *args)
|
||||
|
||||
pyform = BPy_IDGroup_MapDataToPy(idprop);
|
||||
if (pyform == NULL) {
|
||||
/* ok something bad happened with the #PyObject,
|
||||
* so don't remove the prop from the group. if `pyform is
|
||||
* NULL, then it already should have raised an exception. */
|
||||
/* Ok something bad happened with the #PyObject, so don't remove the prop from the group.
|
||||
* if `pyform` is NULL, then it already should have raised an exception. */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -268,9 +268,8 @@ static void cloth_setup_constraints(ClothModifierData *clmd)
|
||||
|
||||
/**
|
||||
* Computes where the cloth would be if it were subject to perfectly stiff edges
|
||||
* (edge distance constraints) in a lagrangian solver. then add forces to help
|
||||
* guide the implicit solver to that state. this function is called after
|
||||
* collisions.
|
||||
* (edge distance constraints) in a lagrangian solver. Then add forces to help
|
||||
* guide the implicit solver to that state. This function is called after collisions.
|
||||
*/
|
||||
static int UNUSED_FUNCTION(cloth_calc_helper_forces)(Object *UNUSED(ob),
|
||||
ClothModifierData *clmd,
|
||||
|
||||
Reference in New Issue
Block a user