Cleanup: spelling
This commit is contained in:
parent
ad0edc626d
commit
0c58970da7
|
@ -379,7 +379,7 @@ ccl_device_inline void camera_sample(KernelGlobals *kg,
|
|||
const int shutter_table_offset = kernel_data.cam.shutter_table_offset;
|
||||
ray->time = lookup_table_read(kg, time, shutter_table_offset, SHUTTER_TABLE_SIZE);
|
||||
/* TODO(sergey): Currently single rolling shutter effect type only
|
||||
* where scan-lines are acquired from top to bottom and whole scanline
|
||||
* where scan-lines are acquired from top to bottom and whole scan-line
|
||||
* is acquired at once (no delay in acquisition happens between pixels
|
||||
* of single scan-line).
|
||||
*
|
||||
|
|
|
@ -78,7 +78,7 @@ typedef void (*IDTypeForeachIDFunction)(struct ID *id, struct LibraryForeachIDDa
|
|||
|
||||
typedef enum eIDTypeInfoCacheCallbackFlags {
|
||||
/** Indicates to the callback that that cache may be stored in the .blend file, so its pointer
|
||||
* should not be cleared at readtime.*/
|
||||
* should not be cleared at read-time. */
|
||||
IDTYPE_CACHE_CB_FLAGS_PERSISTENT = 1 << 0,
|
||||
} eIDTypeInfoCacheCallbackFlags;
|
||||
typedef void (*IDTypeForeachCacheFunctionCallback)(struct ID *id,
|
||||
|
@ -235,9 +235,9 @@ short BKE_idtype_idcode_from_index(const int index);
|
|||
|
||||
short BKE_idtype_idcode_iter_step(int *index);
|
||||
|
||||
/* Some helpers/wrappers around callbacks defined in IDTypeInfo, dealing e.g. with embedded IDs...
|
||||
* XXX Ideally those would rather belong to BKE_lib_id, but using callback fonction pointers makes
|
||||
* this hard to do properly if we want to avoid headers includes in headers... */
|
||||
/* Some helpers/wrappers around callbacks defined in #IDTypeInfo, dealing e.g. with embedded IDs.
|
||||
* XXX Ideally those would rather belong to #BKE_lib_id, but using callback function pointers makes
|
||||
* this hard to do properly if we want to avoid headers includes in headers. */
|
||||
|
||||
void BKE_idtype_id_foreach_cache(struct ID *id,
|
||||
IDTypeForeachCacheFunctionCallback function_callback,
|
||||
|
|
|
@ -300,7 +300,7 @@ static void layerInterp_mdeformvert(const void **sources,
|
|||
|
||||
/* now we know how many unique deform weights there are, so realloc */
|
||||
if (dvert->dw && (dvert->totweight == totweight)) {
|
||||
/* pass (fastpath if we don't need to realloc) */
|
||||
/* pass (fast-path if we don't need to realloc). */
|
||||
}
|
||||
else {
|
||||
if (dvert->dw) {
|
||||
|
|
|
@ -1094,11 +1094,11 @@ void BKE_effectors_apply(ListBase *effectors,
|
|||
* Modifies the force on a particle according to its
|
||||
* relation with the effector object
|
||||
* Different kind of effectors include:
|
||||
* Forcefields: Gravity-like attractor
|
||||
* Force-fields: Gravity-like attractor
|
||||
* (force power is related to the inverse of distance to the power of a falloff value)
|
||||
* Vortex fields: swirling effectors
|
||||
* (particles rotate around Z-axis of the object. otherwise, same relation as)
|
||||
* (Forcefields, but this is not done through a force/acceleration)
|
||||
* (Force-fields, but this is not done through a force/acceleration)
|
||||
* Guide: particles on a path
|
||||
* (particles are guided along a curve bezier or old nurbs)
|
||||
* (is independent of other effectors)
|
||||
|
|
|
@ -1512,12 +1512,12 @@ int BKE_gpencil_object_material_ensure(Main *bmain, Object *ob, Material *materi
|
|||
}
|
||||
|
||||
/**
|
||||
* Creates a new gpencil material and assigns it to object.
|
||||
* Creates a new grease-pencil material and assigns it to object.
|
||||
* \param bmain: Main pointer
|
||||
* \param ob: Grease pencil object
|
||||
* \param name: Material name
|
||||
* \param r_index: value is set to zero based index of the new material if \a r_index is not NULL.
|
||||
* \return Materil pointer
|
||||
* \return Material pointer.
|
||||
*/
|
||||
Material *BKE_gpencil_object_material_new(Main *bmain, Object *ob, const char *name, int *r_index)
|
||||
{
|
||||
|
|
|
@ -1939,7 +1939,7 @@ static void sphclassical_density_accum_cb(void *userdata,
|
|||
return;
|
||||
}
|
||||
|
||||
/* Smoothing factor. Utilise the Wendland kernel. gnuplot:
|
||||
/* Smoothing factor. Utilize the Wendland kernel. gnuplot:
|
||||
* q1(x) = (2.0 - x)**4 * ( 1.0 + 2.0 * x)
|
||||
* plot [0:2] q1(x) */
|
||||
q = qfac / pow3f(pfr->h) * pow4f(2.0f - rij_h) * (1.0f + 2.0f * rij_h);
|
||||
|
@ -2054,7 +2054,7 @@ static void sphclassical_force_cb(void *sphdata_v,
|
|||
|
||||
npressure = stiffness * (pow7f(npa->sphdensity / rest_density) - 1.0f);
|
||||
|
||||
/* First derivative of smoothing factor. Utilise the Wendland kernel.
|
||||
/* First derivative of smoothing factor. Utilize the Wendland kernel.
|
||||
* gnuplot:
|
||||
* q2(x) = 2.0 * (2.0 - x)**4 - 4.0 * (2.0 - x)**3 * (1.0 + 2.0 * x)
|
||||
* plot [0:2] q2(x)
|
||||
|
@ -2947,7 +2947,7 @@ static int collision_response(ParticleSimulationData *sim,
|
|||
/* get exact velocity right before collision */
|
||||
madd_v3_v3v3fl(v0, col->ve1, col->acc, dt1);
|
||||
|
||||
/* Convert collider velocity from 1/framestep to 1/s TODO:
|
||||
/* Convert collider velocity from `1/frame_step` to `1/s` TODO:
|
||||
* here we assume 1 frame step for collision modifier. */
|
||||
mul_v3_fl(pce->vel, col->inv_timestep);
|
||||
|
||||
|
|
|
@ -2289,7 +2289,9 @@ static int ptcache_filename(PTCacheID *pid, char *filename, int cfra, short do_p
|
|||
return len; /* make sure the above string is always 16 chars */
|
||||
}
|
||||
|
||||
/* youll need to close yourself after! */
|
||||
/**
|
||||
* Caller must close after!
|
||||
*/
|
||||
static PTCacheFile *ptcache_file_open(PTCacheID *pid, int mode, int cfra)
|
||||
{
|
||||
PTCacheFile *pf;
|
||||
|
|
|
@ -952,7 +952,7 @@ static void initial_triangulation(CDT_state *cdt)
|
|||
}
|
||||
#endif
|
||||
|
||||
/* Now dedup according to user-defined epsilon.
|
||||
/* Now de-duplicate according to user-defined epsilon.
|
||||
* We will merge a vertex into an earlier-indexed vertex
|
||||
* that is within epsilon (Euclidean distance).
|
||||
* Merges may cascade. So we may end up merging two things
|
||||
|
|
|
@ -560,7 +560,7 @@ int BLI_move(const char *file, const char *to)
|
|||
|
||||
/* windows doesn't support moving to a directory
|
||||
* it has to be 'mv filename filename' and not
|
||||
* 'mv filename destdir' */
|
||||
* 'mv filename destination_directory' */
|
||||
|
||||
BLI_strncpy(str, to, sizeof(str));
|
||||
/* points 'to' to a directory ? */
|
||||
|
|
|
@ -307,7 +307,7 @@ void mid_v3_v3_array(float r[3], const float (*vec_arr)[3], const uint nbr)
|
|||
|
||||
/**
|
||||
* Specialized function for calculating normals.
|
||||
* fastpath for:
|
||||
* Fast-path for:
|
||||
*
|
||||
* \code{.c}
|
||||
* add_v3_v3v3(r, a, b);
|
||||
|
|
|
@ -218,8 +218,8 @@ static void *tslot_thread_start(void *tslot_p)
|
|||
ThreadSlot *tslot = (ThreadSlot *)tslot_p;
|
||||
|
||||
#ifdef USE_APPLE_OMP_FIX
|
||||
/* workaround for Apple gcc 4.2.1 omp vs background thread bug,
|
||||
* set gomp thread local storage pointer which was copied beforehand */
|
||||
/* Workaround for Apple gcc 4.2.1 OMP vs background thread bug,
|
||||
* set GOMP thread local storage pointer which was copied beforehand */
|
||||
pthread_setspecific(gomp_tls_key, thread_tls_data);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -87,12 +87,12 @@ static void action_set_activemarker(void *UNUSED(a), void *UNUSED(b), void *UNUS
|
|||
* It acts as a kind of "glorified clipboard for poses", allowing for naming of poses.
|
||||
*
|
||||
* Features:
|
||||
* - PoseLibs are simply normal Actions.
|
||||
* - Each "pose" is simply a set of keyframes that occur on a particular frame.
|
||||
* - A set of TimeMarkers that belong to each Action, help 'label' where a 'pose' can be
|
||||
* - Pose-libs are simply normal Actions.
|
||||
* - Each "pose" is simply a set of key-frames that occur on a particular frame.
|
||||
* - A set of #TimeMarker that belong to each Action, help 'label' where a 'pose' can be
|
||||
* found in the Action.
|
||||
* - The Scrollwheel or PageUp/Down buttons when used in a special mode or after pressing/holding
|
||||
* [a modifier] key, cycles through the poses available for the active pose's poselib,
|
||||
* - The Scroll-wheel or PageUp/Down buttons when used in a special mode or after pressing/holding
|
||||
* [a modifier] key, cycles through the poses available for the active pose's pose-lib,
|
||||
* allowing the animator to preview what action best suits that pose.
|
||||
*/
|
||||
/* ************************************************************* */
|
||||
|
|
|
@ -293,12 +293,13 @@ enum {
|
|||
/* 16 to copy ICON_DEFAULT_HEIGHT */
|
||||
#define UI_DPI_ICON_SIZE ((float)16 * UI_DPI_FAC)
|
||||
|
||||
/* Button types, bits stored in 1 value... and a short even!
|
||||
* - bits 0-4: bitnr (0-31)
|
||||
/**
|
||||
* Button types, bits stored in 1 value... and a short even!
|
||||
* - bits 0-4: #uiBut.bitnr (0-31)
|
||||
* - bits 5-7: pointer type
|
||||
* - bit 8: for 'bit'
|
||||
* - bit 9-15: button type (now 6 bits, 64 types)
|
||||
* */
|
||||
*/
|
||||
typedef enum {
|
||||
UI_BUT_POIN_CHAR = 32,
|
||||
UI_BUT_POIN_SHORT = 64,
|
||||
|
|
|
@ -737,8 +737,8 @@ static bool ui_but_update_from_old_block(const bContext *C,
|
|||
#else
|
||||
BLI_assert(*but_old_p == NULL || BLI_findindex(&oldblock->buttons, *but_old_p) != -1);
|
||||
|
||||
/* fastpath - avoid loop-in-loop, calling 'ui_but_find_old'
|
||||
* as long as old/new buttons are aligned */
|
||||
/* Fast-path - avoid loop-in-loop, calling #ui_but_find_old
|
||||
* as long as old/new buttons are aligned. */
|
||||
if (LIKELY(*but_old_p && ui_but_equals_old(but, *but_old_p))) {
|
||||
oldbut = *but_old_p;
|
||||
}
|
||||
|
|
|
@ -8935,11 +8935,11 @@ static int ui_handle_list_event(bContext *C, const wmEvent *event, ARegion *regi
|
|||
my = event->y;
|
||||
ui_window_to_block(region, listbox->block, &mx, &my);
|
||||
|
||||
/* convert pan to scrollwheel */
|
||||
/* Convert pan to scroll-wheel. */
|
||||
if (type == MOUSEPAN) {
|
||||
ui_pan_to_scroll(event, &type, &val);
|
||||
|
||||
/* if type still is mousepan, we call it handled, since delta-y accumulate */
|
||||
/* If type still is mouse-pan, we call it handled, since delta-y accumulate. */
|
||||
/* also see wm_event_system.c do_wheel_ui hack */
|
||||
if (type == MOUSEPAN) {
|
||||
retval = WM_UI_HANDLER_BREAK;
|
||||
|
@ -9666,7 +9666,7 @@ static int ui_handle_menu_event(bContext *C,
|
|||
int type = event->type;
|
||||
int val = event->val;
|
||||
|
||||
/* convert pan to scrollwheel */
|
||||
/* Convert pan to scroll-wheel. */
|
||||
if (type == MOUSEPAN) {
|
||||
ui_pan_to_scroll(event, &type, &val);
|
||||
}
|
||||
|
@ -9691,7 +9691,7 @@ static int ui_handle_menu_event(bContext *C,
|
|||
case EVT_PAGEDOWNKEY:
|
||||
case EVT_HOMEKEY:
|
||||
case EVT_ENDKEY:
|
||||
/* arrowkeys: only handle for block_loop blocks */
|
||||
/* Arrow-keys: only handle for block_loop blocks. */
|
||||
if (IS_EVENT_MOD(event, shift, ctrl, alt, oskey)) {
|
||||
/* pass */
|
||||
}
|
||||
|
@ -9699,7 +9699,7 @@ static int ui_handle_menu_event(bContext *C,
|
|||
int type = event->type;
|
||||
int val = event->val;
|
||||
|
||||
/* convert pan to scrollwheel */
|
||||
/* Convert pan to scroll-wheel. */
|
||||
if (type == MOUSEPAN) {
|
||||
ui_pan_to_scroll(event, &type, &val);
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ static bool view2d_poll(bContext *C)
|
|||
/**
|
||||
* This group of operators come in several forms:
|
||||
* -# Modal 'dragging' with MMB - where movement of mouse dictates amount to pan view by
|
||||
* -# Scrollwheel 'steps' - rolling mousewheel by one step moves view by predefined amount
|
||||
* -# Scroll-wheel 'steps' - rolling mouse-wheel by one step moves view by predefined amount
|
||||
*
|
||||
* In order to make sure this works, each operator must define the following RNA-Operator Props:
|
||||
* - `deltax, deltay` - define how much to move view by (relative to zoom-correction factor)
|
||||
|
@ -738,8 +738,8 @@ static void VIEW2D_OT_scroll_up(wmOperatorType *ot)
|
|||
|
||||
/**
|
||||
* This group of operators come in several forms:
|
||||
* -# Scrollwheel 'steps' - rolling mousewheel by one step zooms view by predefined amount.
|
||||
* -# Scrollwheel 'steps' + alt + ctrl/shift - zooms view on one axis only (ctrl=x, shift=y).
|
||||
* -# Scroll-wheel 'steps' - rolling mouse-wheel by one step zooms view by predefined amount.
|
||||
* -# Scroll-wheel 'steps' + alt + ctrl/shift - zooms view on one axis only (ctrl=x, shift=y).
|
||||
* XXX this could be implemented...
|
||||
* -# Pad +/- Keys - pressing each key moves the zooms the view by a predefined amount.
|
||||
*
|
||||
|
|
|
@ -1426,7 +1426,7 @@ static void insert_seam_vert_array(const ProjPaintState *ps,
|
|||
* Be tricky with flags, first 4 bits are #PROJ_FACE_SEAM0 to 4,
|
||||
* last 4 bits are #PROJ_FACE_NOSEAM0 to 4. `1 << i` - where i is `(0..3)`.
|
||||
*
|
||||
* If we're multithreadng, make sure threads are locked when this is called.
|
||||
* If we're multi-threadng, make sure threads are locked when this is called.
|
||||
*/
|
||||
static void project_face_seams_init(const ProjPaintState *ps,
|
||||
MemArena *arena,
|
||||
|
@ -3566,8 +3566,8 @@ static bool project_bucket_face_isect(ProjPaintState *ps,
|
|||
int bucket_y,
|
||||
const MLoopTri *lt)
|
||||
{
|
||||
/* TODO - replace this with a tricker method that uses sideofline for all
|
||||
* screenCoords's edges against the closest bucket corner */
|
||||
/* TODO - replace this with a trickier method that uses side-of-line for all
|
||||
* #ProjPaintState.screenCoords edges against the closest bucket corner. */
|
||||
const int lt_vtri[3] = {PS_LOOPTRI_AS_VERT_INDEX_3(ps, lt)};
|
||||
rctf bucket_bounds;
|
||||
float p1[2], p2[2], p3[2], p4[2];
|
||||
|
|
|
@ -8209,7 +8209,7 @@ static void SCULPT_OT_sample_color(wmOperatorType *ot)
|
|||
/* This allows the sculpt tools to work on meshes with multiple connected components as they had
|
||||
* only one connected component. When initialized and enabled, the sculpt API will return extra
|
||||
* connectivity neighbors that are not in the real mesh. These neighbors are calculated for each
|
||||
* vertex using the minimun distance to a vertex that is in a different connected component. */
|
||||
* vertex using the minimum distance to a vertex that is in a different connected component. */
|
||||
|
||||
/* The fake neighbors first need to be ensured to be initialized.
|
||||
* After that tools which needs fake neighbors functionality need to
|
||||
|
@ -8224,7 +8224,7 @@ static void SCULPT_OT_sample_color(wmOperatorType *ot)
|
|||
* }
|
||||
*
|
||||
* Such approach allows to keep all the connectivity information ready for reuse
|
||||
* (withouy having lag prior to every stroke), but also makes it so the affect
|
||||
* (without having lag prior to every stroke), but also makes it so the affect
|
||||
* is localized to a specific brushes and tools only. */
|
||||
|
||||
enum {
|
||||
|
|
|
@ -392,7 +392,7 @@ static void nla_panel_properties(const bContext *C, Panel *panel)
|
|||
uiItemR(column, &strip_ptr, "blend_type", 0, NULL, ICON_NONE);
|
||||
|
||||
/* Blend in/out + auto-blending:
|
||||
* - blend in/out can only be set when autoblending is off
|
||||
* - blend in/out can only be set when auto-blending is off.
|
||||
*/
|
||||
|
||||
uiItemS(layout);
|
||||
|
|
|
@ -509,8 +509,8 @@ static void viewops_data_create(bContext *C,
|
|||
|
||||
negate_v3_v3(my_origin, rv3d->ofs); /* ofs is flipped */
|
||||
|
||||
/* Set the dist value to be the distance from this 3d point this means youll
|
||||
* always be able to zoom into it and panning wont go bad when dist was zero */
|
||||
/* Set the dist value to be the distance from this 3d point this means you'll
|
||||
* always be able to zoom into it and panning wont go bad when dist was zero. */
|
||||
|
||||
/* remove dist value */
|
||||
upvec[0] = upvec[1] = 0;
|
||||
|
|
|
@ -1148,8 +1148,9 @@ typedef enum eSpaceImage_Flag {
|
|||
SI_FLAG_UNUSED_17 = (1 << 17), /* cleared */
|
||||
SI_FLAG_UNUSED_18 = (1 << 18), /* cleared */
|
||||
|
||||
/* this means that the image is drawn until it reaches the view edge,
|
||||
* in the image view, it's unrelated to the 'tile' mode for texface
|
||||
/**
|
||||
* This means that the image is drawn until it reaches the view edge,
|
||||
* in the image view, it's unrelated to UDIM tiles.
|
||||
*/
|
||||
SI_DRAW_TILE = (1 << 19),
|
||||
SI_SMOOTH_UV = (1 << 20),
|
||||
|
|
|
@ -458,7 +458,7 @@ static void rna_def_layer_objects(BlenderRNA *brna, PropertyRNA *cprop)
|
|||
NULL);
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE | PROP_NEVER_UNLINK);
|
||||
RNA_def_property_ui_text(prop, "Active Object", "Active object for this layer");
|
||||
/* Could call: ED_object_base_activate(C, rl->basact);
|
||||
/* Could call: `ED_object_base_activate(C, view_layer->basact);`
|
||||
* but would be a bad level call and it seems the notifier is enough */
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_OB_ACTIVE, NULL);
|
||||
|
||||
|
|
|
@ -591,7 +591,7 @@ static int wm_handler_ui_call(bContext *C,
|
|||
return WM_HANDLER_CONTINUE;
|
||||
}
|
||||
|
||||
/* UI is quite aggressive with swallowing events, like scrollwheel */
|
||||
/* UI is quite aggressive with swallowing events, like scroll-wheel. */
|
||||
/* I realize this is not extremely nice code... when UI gets keymaps it can be maybe smarter */
|
||||
if (do_wheel_ui == false) {
|
||||
if (is_wheel) {
|
||||
|
@ -608,7 +608,7 @@ static int wm_handler_ui_call(bContext *C,
|
|||
return WM_UI_HANDLER_CONTINUE;
|
||||
}
|
||||
|
||||
/* we set context to where ui handler came from */
|
||||
/* We set context to where UI handler came from. */
|
||||
if (handler->context.area) {
|
||||
CTX_wm_area_set(C, handler->context.area);
|
||||
}
|
||||
|
@ -810,7 +810,7 @@ bool WM_operator_check_ui_empty(wmOperatorType *ot)
|
|||
return true;
|
||||
}
|
||||
|
||||
/* Assume a ui callback will draw something. */
|
||||
/* Assume a UI callback will draw something. */
|
||||
if (ot->ui) {
|
||||
return false;
|
||||
}
|
||||
|
@ -2707,7 +2707,7 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers
|
|||
handler_base = handler_base_next) {
|
||||
handler_base_next = handler_base->next;
|
||||
|
||||
/* during this loop, ui handlers for nested menus can tag multiple handlers free */
|
||||
/* During this loop, UI handlers for nested menus can tag multiple handlers free. */
|
||||
if (handler_base->flag & WM_HANDLER_DO_FREE) {
|
||||
/* pass */
|
||||
}
|
||||
|
@ -2829,7 +2829,7 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers
|
|||
|
||||
/* XXX code this for all modal ops, and ensure free only happens here */
|
||||
|
||||
/* modal ui handler can be tagged to be freed */
|
||||
/* Modal UI handler can be tagged to be freed. */
|
||||
if (BLI_findindex(handlers, handler_base) !=
|
||||
-1) { /* could be freed already by regular modal ops */
|
||||
if (handler_base->flag & WM_HANDLER_DO_FREE) {
|
||||
|
@ -4834,7 +4834,7 @@ wmKeyMapItem *WM_event_match_keymap_item_from_handlers(bContext *C,
|
|||
const wmEvent *event)
|
||||
{
|
||||
LISTBASE_FOREACH (wmEventHandler *, handler_base, handlers) {
|
||||
/* during this loop, ui handlers for nested menus can tag multiple handlers free */
|
||||
/* During this loop, UI handlers for nested menus can tag multiple handlers free. */
|
||||
if (handler_base->flag & WM_HANDLER_DO_FREE) {
|
||||
/* pass */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue