Cleanup: spelling
This commit is contained in:
parent
f0f9a87614
commit
c885cea7bb
@ -184,7 +184,7 @@ int ccg_ehashIterator_isStopped(EHashIterator *ehi)
|
||||
}
|
||||
|
||||
/**
|
||||
* Standard allocator implementarion.
|
||||
* Standard allocator implementation.
|
||||
*/
|
||||
|
||||
static void *_stdAllocator_alloc(CCGAllocatorHDL UNUSED(a), int numBytes)
|
||||
|
@ -224,7 +224,7 @@ static void splineik_init_tree_from_pchan(Scene *scene, Object *UNUSED(ob), bPos
|
||||
}
|
||||
|
||||
/* make a new Spline-IK chain, and store it in the IK chains */
|
||||
/* TODO: we should check if there is already an IK chain on this, since that would take presidence... */
|
||||
/* TODO: we should check if there is already an IK chain on this, since that would take precedence... */
|
||||
{
|
||||
/* make new tree */
|
||||
tSplineIK_Tree *tree = MEM_callocN(sizeof(tSplineIK_Tree), "SplineIK Tree");
|
||||
|
@ -2268,7 +2268,7 @@ static void write_meshes(WriteData *wd, ListBase *idbase)
|
||||
mesh->edit_btmesh = NULL;
|
||||
|
||||
/* now fill in polys to mfaces */
|
||||
/* XXX This breaks writing desing, by using temp allocated memory, which will likely generate
|
||||
/* XXX This breaks writing design, by using temp allocated memory, which will likely generate
|
||||
* duplicates in stored 'old' addresses.
|
||||
* This is very bad, but do not see easy way to avoid this, aside from generating those data
|
||||
* outside of save process itself.
|
||||
|
@ -86,7 +86,7 @@ static int recalc_face_normals_find_index(BMesh *bm, BMFace **faces, const int f
|
||||
int f_start_index;
|
||||
int i;
|
||||
|
||||
/* Search for the best loop. Members are comapred in-order defined here. */
|
||||
/* Search for the best loop. Members are compared in-order defined here. */
|
||||
struct {
|
||||
/* Squared distance from the center to the loops vertex 'l->v'.
|
||||
* The normalized direction between the center and this vertex is also used for the dot-products below. */
|
||||
|
@ -79,7 +79,7 @@ bool ErrorHandler::handleError(const COLLADASaxFWL::IError *error)
|
||||
COLLADASaxFWL::SaxFWLError *saxFWLError = (COLLADASaxFWL::SaxFWLError *) error;
|
||||
/*
|
||||
* Accept non critical errors as warnings (i.e. texture not found)
|
||||
* This makes the importer more gracefull, so it now imports what makes sense.
|
||||
* This makes the importer more graceful, so it now imports what makes sense.
|
||||
*/
|
||||
if (saxFWLError->getSeverity() == COLLADASaxFWL::IError::SEVERITY_ERROR_NONCRITICAL) {
|
||||
isError = false;
|
||||
|
@ -325,18 +325,18 @@ bool ANIM_driver_vars_paste(struct ReportList *reports, struct FCurve *fcu, bool
|
||||
/* Notes:
|
||||
* - All the defines for this (User-Pref settings and Per-Scene settings)
|
||||
* are defined in DNA_userdef_types.h
|
||||
* - Scene settings take presidence over those for userprefs, with old files
|
||||
* - Scene settings take precedence over those for userprefs, with old files
|
||||
* inheriting userpref settings for the scene settings
|
||||
* - "On/Off + Mode" are stored per Scene, but "settings" are currently stored
|
||||
* as userprefs
|
||||
*/
|
||||
|
||||
/* Auto-Keying macros for use by various tools */
|
||||
/* check if auto-keyframing is enabled (per scene takes presidence) */
|
||||
/* check if auto-keyframing is enabled (per scene takes precedence) */
|
||||
#define IS_AUTOKEY_ON(scene) ((scene) ? (scene->toolsettings->autokey_mode & AUTOKEY_ON) : (U.autokey_mode & AUTOKEY_ON))
|
||||
/* check the mode for auto-keyframing (per scene takes presidence) */
|
||||
/* check the mode for auto-keyframing (per scene takes precedence) */
|
||||
#define IS_AUTOKEY_MODE(scene, mode) ((scene) ? (scene->toolsettings->autokey_mode == AUTOKEY_MODE_##mode) : (U.autokey_mode == AUTOKEY_MODE_##mode))
|
||||
/* check if a flag is set for auto-keyframing (per scene takes presidence) */
|
||||
/* check if a flag is set for auto-keyframing (per scene takes precedence) */
|
||||
#define IS_AUTOKEY_FLAG(scene, flag) \
|
||||
((scene) ? \
|
||||
((scene->toolsettings->autokey_flag & AUTOKEY_FLAG_##flag) || (U.autokey_flag & AUTOKEY_FLAG_##flag)) \
|
||||
|
@ -110,7 +110,7 @@ bool ui_but_menu_step_poll(const uiBut *but)
|
||||
{
|
||||
BLI_assert(but->type == UI_BTYPE_MENU);
|
||||
|
||||
/* currenly only RNA buttons */
|
||||
/* currently only RNA buttons */
|
||||
return ((but->menu_step_func != NULL) ||
|
||||
(but->rnaprop && RNA_property_type(but->rnaprop) == PROP_ENUM));
|
||||
}
|
||||
|
@ -563,7 +563,7 @@ static BMEdge *bm_face_split_edge_find(
|
||||
if (UNLIKELY(BM_edge_exists(v_pivot, l_iter->e->v1) ||
|
||||
BM_edge_exists(v_pivot, l_iter->e->v2)))
|
||||
{
|
||||
/* very unlikley but will cause complications splicing the verts together,
|
||||
/* very unlikely but will cause complications splicing the verts together,
|
||||
* so just skip this case */
|
||||
ok = false;
|
||||
}
|
||||
|
@ -395,7 +395,7 @@ static void edbm_ripsel_deselect_helper(BMesh *bm, EdgeLoopPair *eloop_pairs,
|
||||
* return an un-ordered array of loop pairs
|
||||
* use for rebuilding face-fill
|
||||
*
|
||||
* \note the method currenly used fails for edges with 3+ face users and gives
|
||||
* \note the method currently used fails for edges with 3+ face users and gives
|
||||
* nasty holes in the mesh, there isnt a good way of knowing ahead of time
|
||||
* which loops will be split apart (its possible to figure out but quite involved).
|
||||
* So for now this is a known limitation of current rip-fill option.
|
||||
|
@ -440,7 +440,7 @@ static int group_link_exec(bContext *C, wmOperator *op)
|
||||
return OPERATOR_CANCELLED;
|
||||
|
||||
/* Early return check, if the object is already in group
|
||||
* we could sckip all the dependency check and just consider
|
||||
* we could skip all the dependency check and just consider
|
||||
* operator is finished.
|
||||
*/
|
||||
if (BKE_group_object_exists(group, ob)) {
|
||||
|
@ -1482,7 +1482,7 @@ static void render_view3d_do(RenderEngine *engine, const bContext *C)
|
||||
void render_view3d_update(RenderEngine *engine, const bContext *C)
|
||||
{
|
||||
/* this shouldn't be needed and causes too many database rebuilds, but we
|
||||
* aren't actually tracking updates for all relevent datablocks so this is
|
||||
* aren't actually tracking updates for all relevant datablocks so this is
|
||||
* a catch-all for updates */
|
||||
engine->update_flag |= RE_ENGINE_UPDATE_DATABASE;
|
||||
|
||||
|
@ -183,8 +183,8 @@ BLI_INLINE unsigned char f_to_char(const float val)
|
||||
/* to avoid locking in tile initialization */
|
||||
#define TILE_PENDING SET_INT_IN_POINTER(-1)
|
||||
|
||||
/* This is mainly a convenience struct used so we can keep an array of images we use
|
||||
* Thir imbufs, etc, in 1 array, When using threads this array is copied for each thread
|
||||
/* This is mainly a convenience struct used so we can keep an array of images we use -
|
||||
* their imbufs, etc, in 1 array, When using threads this array is copied for each thread
|
||||
* because 'partRedrawRect' and 'touch' values would not be thread safe */
|
||||
typedef struct ProjPaintImage {
|
||||
Image *ima;
|
||||
@ -202,7 +202,7 @@ typedef struct ProjPaintImage {
|
||||
*/
|
||||
typedef struct ProjStrokeHandle {
|
||||
/* Support for painting from multiple views at once,
|
||||
* currently used to impliment symmetry painting,
|
||||
* currently used to implement symmetry painting,
|
||||
* we can assume at least the first is set while painting. */
|
||||
struct ProjPaintState *ps_views[8];
|
||||
int ps_views_tot;
|
||||
@ -2174,7 +2174,7 @@ static void project_bucket_clip_face(
|
||||
|
||||
if ((*tot) < 3) {
|
||||
/* no intersections to speak of, but more probable is that all face is just outside the
|
||||
* rectangle and culled due to float precision issues. Since above teste have failed,
|
||||
* rectangle and culled due to float precision issues. Since above tests have failed,
|
||||
* just dump triangle as is for painting */
|
||||
*tot = 0;
|
||||
copy_v2_v2(bucket_bounds_uv[*tot], uv1co); (*tot)++;
|
||||
|
@ -634,7 +634,7 @@ typedef struct PrefetchQueue {
|
||||
short render_size, render_flag;
|
||||
|
||||
/* If true prefecthing goes forward in time,
|
||||
* othwewise it goes backwards in time (starting from current frame).
|
||||
* otherwise it goes backwards in time (starting from current frame).
|
||||
*/
|
||||
bool forward;
|
||||
|
||||
|
@ -826,7 +826,7 @@ static void graph_draw_driver_debug(bAnimContext *ac, ID *id, FCurve *fcu)
|
||||
//if ((driver->flag & DRIVER_FLAG_SHOWDEBUG) == 0)
|
||||
// return;
|
||||
|
||||
/* No curve to modify/visualise the result?
|
||||
/* No curve to modify/visualize the result?
|
||||
* => We still want to show the 1-1 default...
|
||||
*/
|
||||
if ((fcu->totvert == 0) && BLI_listbase_is_empty(&fcu->modifiers)) {
|
||||
|
@ -42,7 +42,7 @@
|
||||
*
|
||||
* I've tried to keep similar, if not exact names for the variables as
|
||||
* are presented in the paper. Where I've changed the concept slightly,
|
||||
* as in stepsPerFrame comapred to the time step in the paper, I've used
|
||||
* as in stepsPerFrame compared to the time step in the paper, I've used
|
||||
* variables with different names to minimize confusion.
|
||||
*/
|
||||
|
||||
|
@ -177,7 +177,7 @@ PyObject *PyC_FromArray(const void *array, int length, const PyTypeObject *type,
|
||||
|
||||
/**
|
||||
* Caller needs to ensure tuple is uninitialized.
|
||||
* Handy for filling a typle with None for eg.
|
||||
* Handy for filling a tuple with None for eg.
|
||||
*/
|
||||
void PyC_Tuple_Fill(PyObject *tuple, PyObject *value)
|
||||
{
|
||||
@ -367,11 +367,12 @@ PyObject *PyC_FrozenSetFromStrings(const char **strings)
|
||||
}
|
||||
|
||||
|
||||
/* similar to PyErr_Format(),
|
||||
/**
|
||||
* Similar to #PyErr_Format(),
|
||||
*
|
||||
* implementation - we cant actually preprend the existing exception,
|
||||
* Implementation - we cant actually prepend the existing exception,
|
||||
* because it could have _any_ arguments given to it, so instead we get its
|
||||
* __str__ output and raise our own exception including it.
|
||||
* ``__str__`` output and raise our own exception including it.
|
||||
*/
|
||||
PyObject *PyC_Err_Format_Prefix(PyObject *exception_type_prefix, const char *format, ...)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user