Cleanup: spelling in comments
This commit is contained in:
parent
379672ca0b
commit
e87082d8a7
|
@ -104,7 +104,7 @@ bool BlenderImageLoader::load_pixels(const ImageMetaData &metadata,
|
|||
}
|
||||
else if (metadata.type == IMAGE_DATA_TYPE_HALF || metadata.type == IMAGE_DATA_TYPE_HALF4) {
|
||||
/* Half float. Blender does not have a half type, but in some cases
|
||||
* we upsample byte to half to avoid precision loss for colorspace
|
||||
* we up-sample byte to half to avoid precision loss for colorspace
|
||||
* conversion. */
|
||||
unsigned char *in_pixels = image_get_pixels_for_frame(b_image, frame, tile_number);
|
||||
|
||||
|
|
|
@ -521,7 +521,7 @@ typedef struct {
|
|||
} GHOST_TEventNDOFMotionData;
|
||||
|
||||
typedef enum { GHOST_kPress, GHOST_kRelease } GHOST_TButtonAction;
|
||||
/* Good for mouse or other buttons too, hmmm? */
|
||||
/* Good for mouse or other buttons too? */
|
||||
|
||||
typedef struct {
|
||||
GHOST_TButtonAction action;
|
||||
|
|
|
@ -1711,7 +1711,7 @@ uint16_t GHOST_WindowX11::getDPIHint()
|
|||
XrmDestroyDatabase(xrdb);
|
||||
}
|
||||
|
||||
/* Fallback to calculating DPI using X reported DPI, set using xrandr --dpi */
|
||||
/* Fallback to calculating DPI using X reported DPI, set using `xrandr --dpi`. */
|
||||
XWindowAttributes attr;
|
||||
if (!XGetWindowAttributes(m_display, m_window, &attr)) {
|
||||
/* Failed to get window attributes, return X11 default DPI */
|
||||
|
|
|
@ -222,9 +222,10 @@ void CTX_wm_operator_poll_msg_clear(struct bContext *C);
|
|||
|
||||
/* Data Context
|
||||
*
|
||||
* - listbases consist of CollectionPointerLink items and must be
|
||||
* freed with BLI_freelistN!
|
||||
* - the dir listbase consists of LinkData items */
|
||||
* - #ListBase consists of #CollectionPointerLink items and must be
|
||||
* freed with #BLI_freelistN!
|
||||
* - The dir #ListBase consists of #LinkData items.
|
||||
*/
|
||||
|
||||
/* data type, needed so we can tell between a NULL pointer and an empty list */
|
||||
enum {
|
||||
|
|
|
@ -76,13 +76,13 @@ struct bGPdata;
|
|||
void BKE_gpencil_free_point_weights(struct MDeformVert *dvert);
|
||||
void BKE_gpencil_free_stroke_weights(struct bGPDstroke *gps);
|
||||
void BKE_gpencil_free_stroke_editcurve(struct bGPDstroke *gps);
|
||||
/* free stroke, doesn't unlink from any listbase */
|
||||
/** Free stroke, doesn't unlink from any #ListBase. */
|
||||
void BKE_gpencil_free_stroke(struct bGPDstroke *gps);
|
||||
/* Free strokes belonging to a gp-frame */
|
||||
/** Free strokes belonging to a gp-frame. */
|
||||
bool BKE_gpencil_free_strokes(struct bGPDframe *gpf);
|
||||
/* Free all of a gp-layer's frames */
|
||||
/** Free all of a gp-layer's frames. */
|
||||
void BKE_gpencil_free_frames(struct bGPDlayer *gpl);
|
||||
/* Free all of the gp-layers for a viewport (list should be &gpd->layers or so) */
|
||||
/** Free all of the gp-layers for a viewport (list should be `&gpd->layers` or so). */
|
||||
void BKE_gpencil_free_layers(struct ListBase *list);
|
||||
/** Free (or release) any data used by this grease pencil (does not free the gpencil itself). */
|
||||
void BKE_gpencil_free_data(struct bGPdata *gpd, bool free_all);
|
||||
|
@ -108,9 +108,9 @@ void BKE_gpencil_batch_cache_free(struct bGPdata *gpd);
|
|||
*/
|
||||
void BKE_gpencil_stroke_sync_selection(struct bGPdata *gpd, struct bGPDstroke *gps);
|
||||
void BKE_gpencil_curve_sync_selection(struct bGPdata *gpd, struct bGPDstroke *gps);
|
||||
/* Assign unique stroke ID for selection. */
|
||||
/** Assign unique stroke ID for selection. */
|
||||
void BKE_gpencil_stroke_select_index_set(struct bGPdata *gpd, struct bGPDstroke *gps);
|
||||
/* Reset unique stroke ID for selection. */
|
||||
/** Reset unique stroke ID for selection. */
|
||||
void BKE_gpencil_stroke_select_index_reset(struct bGPDstroke *gps);
|
||||
|
||||
/**
|
||||
|
|
|
@ -4074,7 +4074,7 @@ void BKE_animsys_evaluate_all_animation(Main *main, Depsgraph *depsgraph, float
|
|||
|
||||
/* objects */
|
||||
/* ADT_RECALC_ANIM doesn't need to be supplied here, since object AnimData gets
|
||||
* this tagged by Depsgraph on framechange. This optimization means that objects
|
||||
* this tagged by Depsgraph on frame-change. This optimization means that objects
|
||||
* linked from other (not-visible) scenes will not need their data calculated.
|
||||
*/
|
||||
EVAL_ANIM_IDS(main->objects.first, 0);
|
||||
|
|
|
@ -1025,9 +1025,8 @@ static void UNUSED_FUNCTION(bezt_add_to_cfra_elem)(ListBase *lb, BezTriple *bezt
|
|||
* \{ */
|
||||
|
||||
/* Some utilities for working with FPoints (i.e. 'sampled' animation curve data, such as
|
||||
* data imported from BVH/Mocap files), which are specialized for use with high density datasets,
|
||||
* which BezTriples/Keyframe data are ill equipped to do.
|
||||
*/
|
||||
* data imported from BVH/motion-capture files), which are specialized for use with high density
|
||||
* datasets, which BezTriples/Keyframe data are ill equipped to do. */
|
||||
|
||||
float fcurve_samplingcb_evalcurve(FCurve *fcu, void *UNUSED(data), float evaltime)
|
||||
{
|
||||
|
|
|
@ -2276,7 +2276,7 @@ void psys_emitter_customdata_mask(ParticleSystem *psys, CustomData_MeshMasks *r_
|
|||
r_cddata_masks->fmask |= CD_MASK_MTFACE;
|
||||
}
|
||||
|
||||
/* ask for vertexgroups if we need them */
|
||||
/* Ask for vertex-groups if we need them. */
|
||||
for (i = 0; i < PSYS_TOT_VG; i++) {
|
||||
if (psys->vgroup[i]) {
|
||||
r_cddata_masks->vmask |= CD_MASK_MDEFORMVERT;
|
||||
|
|
|
@ -2540,7 +2540,7 @@ static bool pbvh_faces_node_nearest_to_ray(PBVH *pbvh,
|
|||
}
|
||||
|
||||
if (origco) {
|
||||
/* intersect with backuped original coordinates */
|
||||
/* Intersect with backed-up original coordinates. */
|
||||
hit |= ray_face_nearest_tri(ray_start,
|
||||
ray_normal,
|
||||
origco[face_verts[0]],
|
||||
|
|
|
@ -73,7 +73,7 @@ void _BLI_assert_unreachable_print(const char *file, int line, const char *funct
|
|||
# define BLI_STATIC_ASSERT(a, msg) _STATIC_ASSERT(a);
|
||||
# endif
|
||||
#elif defined(__COVERITY__)
|
||||
/* Workaround error with coverity */
|
||||
/* Workaround error with COVERITY. */
|
||||
# define BLI_STATIC_ASSERT(a, msg)
|
||||
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
|
||||
/* C11 */
|
||||
|
|
|
@ -1104,7 +1104,7 @@ static void gpencil_stroke_to_bezier(bContext *C,
|
|||
rad_fac,
|
||||
minmax_weights);
|
||||
|
||||
/* shift coord vects */
|
||||
/* Shift coord vectors. */
|
||||
copy_v3_v3(p3d_prev, p3d_cur);
|
||||
copy_v3_v3(p3d_cur, p3d_next);
|
||||
|
||||
|
|
|
@ -726,16 +726,16 @@ struct GP_EditableStrokes_Iter {
|
|||
(void)0
|
||||
|
||||
/**
|
||||
* Iterate over all editable editcurves in the current context,
|
||||
* stopping on each usable layer + stroke + curve pair (i.e. gpl, gps and gpc)
|
||||
* Iterate over all editable edit-curves in the current context,
|
||||
* stopping on each usable layer + stroke + curve pair (i.e. `gpl`, `gps` and `gpc`)
|
||||
* to perform some operations on the curve.
|
||||
*
|
||||
* \param gpl: The identifier to use for the layer of the stroke being processed.
|
||||
* Choose a suitable value to avoid name clashes.
|
||||
* Choose a suitable value to avoid name clashes.
|
||||
* \param gps: The identifier to use for current stroke being processed.
|
||||
* Choose a suitable value to avoid name clashes.
|
||||
* Choose a suitable value to avoid name clashes.
|
||||
* \param gpc: The identifier to use for current editcurve being processed.
|
||||
* Choose a suitable value to avoid name clashes.
|
||||
* Choose a suitable value to avoid name clashes.
|
||||
*/
|
||||
#define GP_EDITABLE_CURVES_BEGIN(gpstroke_iter, C, gpl, gps, gpc) \
|
||||
{ \
|
||||
|
|
|
@ -829,7 +829,7 @@ static bool gpencil_brush_randomize_apply(tGP_BrushEditData *gso,
|
|||
mul_v2_fl(svec, fac);
|
||||
}
|
||||
|
||||
/* convert to dataspace */
|
||||
/* Convert to data-space. */
|
||||
if (gps->flag & GP_STROKE_3DSPACE) {
|
||||
/* 3D: Project to 3D space */
|
||||
bool flip;
|
||||
|
|
|
@ -525,7 +525,7 @@ bool ED_gpencil_stroke_can_use_direct(const ScrArea *area, const bGPDstroke *gps
|
|||
return (area->spacetype == SPACE_IMAGE);
|
||||
}
|
||||
if (gps->flag & GP_STROKE_2DSPACE) {
|
||||
/* 2D strokes (dataspace) - for any 2D view (i.e. everything other than 3D view) */
|
||||
/* 2D strokes (data-space) - for any 2D view (i.e. everything other than 3D view). */
|
||||
return (area->spacetype != SPACE_VIEW3D);
|
||||
}
|
||||
/* view aligned - anything goes */
|
||||
|
|
|
@ -1866,7 +1866,7 @@ struct PointerRNA *UI_region_panel_custom_data_under_cursor(const struct bContex
|
|||
const struct wmEvent *event);
|
||||
void UI_panel_custom_data_set(struct Panel *panel, struct PointerRNA *custom_data);
|
||||
|
||||
/* Polyinstantiated panels for representing a list of data. */
|
||||
/* Poly-instantiated panels for representing a list of data. */
|
||||
/**
|
||||
* Called in situations where panels need to be added dynamically rather than
|
||||
* having only one panel corresponding to each #PanelType.
|
||||
|
|
|
@ -156,7 +156,7 @@ static void datadropper_id_sample_pt(
|
|||
CTX_wm_area_set(C, area);
|
||||
CTX_wm_region_set(C, region);
|
||||
|
||||
/* grr, always draw else we leave stale text */
|
||||
/* Unfortunately it's necessary to always draw else we leave stale text. */
|
||||
ED_region_tag_redraw(region);
|
||||
|
||||
if (area->spacetype == SPACE_VIEW3D) {
|
||||
|
|
|
@ -171,7 +171,7 @@ static void depthdropper_depth_sample_pt(bContext *C,
|
|||
CTX_wm_area_set(C, area);
|
||||
CTX_wm_region_set(C, region);
|
||||
|
||||
/* grr, always draw else we leave stale text */
|
||||
/* Unfortunately it's necessary to always draw otherwise we leave stale text. */
|
||||
ED_region_tag_redraw(region);
|
||||
|
||||
view3d_operator_needs_opengl(C);
|
||||
|
|
|
@ -1536,7 +1536,7 @@ static int bake(const BakeAPIRender *bkr,
|
|||
ob_low_eval->obmat);
|
||||
}
|
||||
else {
|
||||
/* from multiresolution */
|
||||
/* From multi-resolution. */
|
||||
Mesh *me_nores = NULL;
|
||||
ModifierData *md = NULL;
|
||||
int mode;
|
||||
|
|
|
@ -626,8 +626,8 @@ void ED_screen_refresh(wmWindowManager *wm, wmWindow *win)
|
|||
screen_geom_vertices_scale(win, screen);
|
||||
|
||||
ED_screen_areas_iter (win, screen, area) {
|
||||
/* set spacetype and region callbacks, calls init() */
|
||||
/* sets subwindows for regions, adds handlers */
|
||||
/* Set space-type and region callbacks, calls init() */
|
||||
/* Sets sub-windows for regions, adds handlers. */
|
||||
ED_area_init(wm, win, area);
|
||||
}
|
||||
|
||||
|
|
|
@ -1477,7 +1477,7 @@ static int area_close_exec(bContext *C, wmOperator *op)
|
|||
bScreen *screen = CTX_wm_screen(C);
|
||||
ScrArea *area = CTX_wm_area(C);
|
||||
|
||||
/* This operator is scriptable, so the area passed could be invalid. */
|
||||
/* This operator is script-able, so the area passed could be invalid. */
|
||||
if (BLI_findindex(&screen->areabase, area) == -1) {
|
||||
BKE_report(op->reports, RPT_ERROR, "Area not found in the active screen");
|
||||
return OPERATOR_CANCELLED;
|
||||
|
@ -2722,7 +2722,7 @@ static int region_scale_invoke(bContext *C, wmOperator *op, const wmEvent *event
|
|||
rmd->region->sizey = rmd->region->winy;
|
||||
}
|
||||
|
||||
/* now copy to regionmovedata */
|
||||
/* Now copy to region-move-data. */
|
||||
if (ELEM(rmd->edge, AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT)) {
|
||||
rmd->origval = rmd->region->sizex;
|
||||
}
|
||||
|
|
|
@ -3132,7 +3132,7 @@ static void project_paint_face_init(const ProjPaintState *ps,
|
|||
}
|
||||
}
|
||||
|
||||
/* Is this UV visible from the view? - raytrace */
|
||||
/* Is this UV visible from the view? - ray-trace */
|
||||
/* project_paint_PickFace is less complex, use for testing */
|
||||
// if (project_paint_PickFace(ps, pixelScreenCo, w, &side) == tri_index) {
|
||||
if ((ps->do_occlude == false) ||
|
||||
|
@ -3222,7 +3222,7 @@ static void project_paint_face_init(const ProjPaintState *ps,
|
|||
float seam_subsection[4][2];
|
||||
float fac1, fac2;
|
||||
|
||||
/* Pixelspace UVs. */
|
||||
/* Pixel-space UV's. */
|
||||
float lt_puv[3][2];
|
||||
|
||||
lt_puv[0][0] = lt_uv_pxoffset[0][0] * ibuf->x;
|
||||
|
|
|
@ -3075,7 +3075,7 @@ static int filelist_readjob_list_dir(const char *root,
|
|||
}
|
||||
target = entry->redirection_path;
|
||||
#ifdef WIN32
|
||||
/* On Windows don't show ".lnk" extension for valid shortcuts. */
|
||||
/* On Windows don't show `.lnk` extension for valid shortcuts. */
|
||||
BLI_path_extension_replace(entry->relpath, FILE_MAXDIR, "");
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -890,7 +890,7 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks)
|
|||
continue;
|
||||
}
|
||||
|
||||
/* Exclude "all my files" as it makes no sense in blender fileselector */
|
||||
/* Exclude "all my files" as it makes no sense in blender file-selector. */
|
||||
/* Exclude "airdrop" if wlan not active as it would show "" ) */
|
||||
if (!strstr(line, "myDocuments.cannedSearch") && (*line != '\0')) {
|
||||
fsmenu_insert_entry(
|
||||
|
|
|
@ -1446,7 +1446,7 @@ static int image_open_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(
|
|||
|
||||
image_open_init(C, op);
|
||||
|
||||
/* show multiview save options only if scene has multiviews */
|
||||
/* Show multi-view save options only if scene has multi-views. */
|
||||
PropertyRNA *prop;
|
||||
prop = RNA_struct_find_property(op->ptr, "show_multiview");
|
||||
RNA_property_boolean_set(op->ptr, prop, (scene->r.scemode & R_MULTIVIEW) != 0);
|
||||
|
|
|
@ -287,7 +287,7 @@ static void ptile_restore_runtime_list(ListBase *paint_tiles)
|
|||
ibuf->userflags |= IB_RECT_INVALID; /* force recreate of char rect */
|
||||
}
|
||||
if (ibuf->mipmap[0]) {
|
||||
ibuf->userflags |= IB_MIPMAP_INVALID; /* force mip-map recreation. */
|
||||
ibuf->userflags |= IB_MIPMAP_INVALID; /* Force MIP-MAP recreation. */
|
||||
}
|
||||
ibuf->userflags |= IB_DISPLAY_BUFFER_INVALID;
|
||||
|
||||
|
|
|
@ -1004,7 +1004,7 @@ static int nlaedit_add_meta_exec(bContext *C, wmOperator *UNUSED(op))
|
|||
NlaStrip *strip;
|
||||
|
||||
if (BKE_nlatrack_is_nonlocal_in_liboverride(ale->id, nlt)) {
|
||||
/* No making metastrips in non-local tracks of override data. */
|
||||
/* No making meta-strips in non-local tracks of override data. */
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -1078,7 +1078,7 @@ static int nlaedit_remove_meta_exec(bContext *C, wmOperator *UNUSED(op))
|
|||
NlaTrack *nlt = (NlaTrack *)ale->data;
|
||||
|
||||
if (BKE_nlatrack_is_nonlocal_in_liboverride(ale->id, nlt)) {
|
||||
/* No removing metastrips from non-local tracks of override data. */
|
||||
/* No removing meta-strips from non-local tracks of override data. */
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -1714,7 +1714,7 @@ static int nlaedit_swap_exec(bContext *C, wmOperator *op)
|
|||
BKE_nlatrack_add_strip(nlt, sb, is_liboverride);
|
||||
}
|
||||
|
||||
/* clear (temp) metastrips */
|
||||
/* Clear (temp) meta-strips. */
|
||||
BKE_nlastrips_clear_metas(&nlt->strips, 0, 1);
|
||||
}
|
||||
|
||||
|
|
|
@ -2425,7 +2425,7 @@ static bool uv_mouse_select_multi(bContext *C,
|
|||
UvNearestHit hit = UV_NEAREST_HIT_INIT_DIST_PX(®ion->v2d, 75.0f);
|
||||
int selectmode, sticky;
|
||||
bool found_item = false;
|
||||
/* 0 == don't flush, 1 == sel, -1 == desel; only use when selection sync is enabled */
|
||||
/* 0 == don't flush, 1 == sel, -1 == deselect; only use when selection sync is enabled. */
|
||||
int flush = 0;
|
||||
|
||||
/* Penalty (in pixels) applied to elements that are already selected
|
||||
|
@ -2735,7 +2735,7 @@ static int uv_mouse_select_loop_generic_multi(bContext *C,
|
|||
const ToolSettings *ts = scene->toolsettings;
|
||||
UvNearestHit hit = UV_NEAREST_HIT_INIT_MAX(®ion->v2d);
|
||||
bool found_item = false;
|
||||
/* 0 == don't flush, 1 == sel, -1 == desel; only use when selection sync is enabled */
|
||||
/* 0 == don't flush, 1 == sel, -1 == deselect; only use when selection sync is enabled. */
|
||||
int flush = 0;
|
||||
|
||||
/* Find edge. */
|
||||
|
|
|
@ -1716,7 +1716,7 @@ static void stitch_draw_vbo(GPUVertBuf *vbo, GPUPrimType prim_type, const float
|
|||
GPU_batch_discard(batch);
|
||||
}
|
||||
|
||||
/* TODO: make things pretier : store batches inside StitchPreviewer instead of the bare verts pos
|
||||
/* TODO: make things prettier : store batches inside StitchPreviewer instead of the bare verts pos
|
||||
*/
|
||||
static void stitch_draw(const bContext *UNUSED(C), ARegion *UNUSED(region), void *arg)
|
||||
{
|
||||
|
|
|
@ -2484,8 +2484,8 @@ static void lineart_main_load_geometries(
|
|||
flags |= DEG_ITER_OBJECT_FLAG_DUPLI;
|
||||
}
|
||||
|
||||
/* XXX(Yiming): Temporary solution, this iterator is technially unsafe to use *during* depsgraph
|
||||
* evaluation, see https://developer.blender.org/D14997 for detailed explainations. */
|
||||
/* XXX(@Yiming): Temporary solution, this iterator is technically unsafe to use *during*
|
||||
* depsgraph evaluation, see D14997 for detailed explanations. */
|
||||
DEG_OBJECT_ITER_BEGIN (depsgraph, ob, flags) {
|
||||
Object *eval_ob = DEG_get_evaluated_object(depsgraph, ob);
|
||||
|
||||
|
@ -3245,7 +3245,7 @@ static void lineart_triangle_intersect_in_bounding_area(LineartTriangle *tri,
|
|||
|
||||
double *G0 = tri->v[0]->gloc, *G1 = tri->v[1]->gloc, *G2 = tri->v[2]->gloc;
|
||||
|
||||
/* If this _is_ the smallest subdiv bounding area, then do the intersections there. */
|
||||
/* If this _is_ the smallest subdivision bounding area, then do the intersections there. */
|
||||
for (int i = 0; i < up_to; i++) {
|
||||
/* Testing_triangle->testing[0] is used to store pairing triangle reference.
|
||||
* See definition of LineartTriangleThread for more info. */
|
||||
|
@ -3792,7 +3792,7 @@ static void lineart_bounding_area_split(LineartRenderBuffer *rb,
|
|||
b[3] = MIN3(tri->v[0]->fbcoord[1], tri->v[1]->fbcoord[1], tri->v[2]->fbcoord[1]);
|
||||
|
||||
/* Re-link triangles into child tiles, not doing intersection lines during this because this
|
||||
* batch of triangles are all tested with each other for intersecctions. */
|
||||
* batch of triangles are all tested with each other for intersections. */
|
||||
if (LRT_BOUND_AREA_CROSSES(b, &ba[0].l)) {
|
||||
lineart_bounding_area_link_triangle(rb, &ba[0], tri, b, 0, recursive_level + 1, false, NULL);
|
||||
}
|
||||
|
@ -4284,8 +4284,8 @@ static void lineart_create_edges_from_isec_data(LineartIsecData *d)
|
|||
if (!th->current) {
|
||||
continue;
|
||||
}
|
||||
/* We don't care about removing duplicated vert in this method, chaning can handle that, and it
|
||||
* saves us from using locks and look up tables. */
|
||||
/* We don't care about removing duplicated vert in this method, chaining can handle that,
|
||||
* and it saves us from using locks and look up tables. */
|
||||
LineartVertIntersection *v = lineart_mem_acquire(
|
||||
&rb->render_data_pool, sizeof(LineartVertIntersection) * th->current * 2);
|
||||
LineartEdge *e = lineart_mem_acquire(&rb->render_data_pool, sizeof(LineartEdge) * th->current);
|
||||
|
@ -4712,7 +4712,7 @@ bool MOD_lineart_compute_feature_lines(Depsgraph *depsgraph,
|
|||
lineart_main_add_triangles(rb);
|
||||
|
||||
/* Re-link bounding areas because they have been subdivided by worker threads and we need
|
||||
* andjacent info. */
|
||||
* adjacent info. */
|
||||
lineart_main_bounding_areas_connect_post(rb);
|
||||
|
||||
/* Link lines to acceleration structure, this can only be done after perspective division, if
|
||||
|
|
|
@ -80,7 +80,7 @@ void lineart_count_and_print_render_buffer_memory(struct LineartRenderBuffer *rb
|
|||
#define LRT_BOUND_AREA_CROSSES(b1, b2) \
|
||||
((b1)[0] < (b2)[1] && (b1)[1] > (b2)[0] && (b1)[3] < (b2)[2] && (b1)[2] > (b2)[3])
|
||||
|
||||
/* Initial bounding area row/column count, setting 10 is tested to be realitvely optimal for the
|
||||
/* Initial bounding area row/column count, setting 10 is tested to be relatively optimal for the
|
||||
* performance under current algorithm. */
|
||||
#define LRT_BA_ROWS 10
|
||||
|
||||
|
|
|
@ -176,7 +176,7 @@ typedef struct ImBuf {
|
|||
* avoid problems and use int. - campbell */
|
||||
int x, y;
|
||||
|
||||
/** Active amount of bits/bitplanes */
|
||||
/** Active amount of bits/bit-planes. */
|
||||
unsigned char planes;
|
||||
/** Number of channels in `rect_float` (0 = 4 channel default) */
|
||||
int channels;
|
||||
|
@ -276,7 +276,7 @@ typedef struct ImBuf {
|
|||
} ImBuf;
|
||||
|
||||
/**
|
||||
* \brief userflags: Flags used internally by blender for imagebuffers
|
||||
* \brief userflags: Flags used internally by blender for image-buffers.
|
||||
*/
|
||||
|
||||
enum {
|
||||
|
|
|
@ -121,8 +121,8 @@ static int imb_save_dpx_cineon(ImBuf *ibuf, const char *filepath, int use_cineon
|
|||
}
|
||||
|
||||
if (ibuf->rect_float != NULL && bitspersample != 8) {
|
||||
/* don't use the float buffer to save 8 bpp picture to prevent color banding
|
||||
* (there's no dithering algorithm behind the logImageSetDataRGBA function) */
|
||||
/* Don't use the float buffer to save 8 BPP picture to prevent color banding
|
||||
* (there's no dithering algorithm behind the #logImageSetDataRGBA function). */
|
||||
|
||||
fbuf = (float *)MEM_mallocN(sizeof(float[4]) * ibuf->x * ibuf->y,
|
||||
"fbuf in imb_save_dpx_cineon");
|
||||
|
|
|
@ -597,7 +597,7 @@ static void colormanage_free_config(void)
|
|||
while (colorspace) {
|
||||
ColorSpace *colorspace_next = colorspace->next;
|
||||
|
||||
/* free precomputer processors */
|
||||
/* Free precomputed processors. */
|
||||
if (colorspace->to_scene_linear) {
|
||||
OCIO_cpuProcessorRelease((OCIO_ConstCPUProcessorRcPtr *)colorspace->to_scene_linear);
|
||||
}
|
||||
|
@ -673,7 +673,7 @@ void colormanagement_init(void)
|
|||
|
||||
#ifdef WIN32
|
||||
{
|
||||
/* quite a hack to support loading configuration from path with non-acii symbols */
|
||||
/* Quite a hack to support loading configuration from path with non-ACII symbols. */
|
||||
|
||||
char short_name[256];
|
||||
BLI_get_short_name(short_name, configfile);
|
||||
|
|
|
@ -235,7 +235,8 @@ AviError AVI_close_compress(AviMovie *movie);
|
|||
*/
|
||||
AviError AVI_set_compress_option(
|
||||
AviMovie *movie, int option_type, int stream, AviOption option, void *opt_data);
|
||||
/* Hmmm... there should be some explanation about what these mean */
|
||||
|
||||
/* TODO: there should be some explanation about what these mean. */
|
||||
/**
|
||||
* Compression option, for use in avi_set_compress_option
|
||||
*/
|
||||
|
|
|
@ -472,7 +472,7 @@ typedef struct Library {
|
|||
ushort tag;
|
||||
char _pad_0[6];
|
||||
|
||||
/* Temp data needed by read/write code, and liboverride recursive resync. */
|
||||
/** Temp data needed by read/write code, and lib-override recursive re-synchronized. */
|
||||
int temp_index;
|
||||
/** See BLENDER_FILE_VERSION, BLENDER_FILE_SUBVERSION, needed for do_versions. */
|
||||
short versionfile, subversionfile;
|
||||
|
|
|
@ -771,7 +771,7 @@ typedef enum eNlaStrip_Blend_Mode {
|
|||
NLASTRIP_MODE_COMBINE,
|
||||
} eNlaStrip_Blend_Mode;
|
||||
|
||||
/** NLA Strip Extrpolation Mode. */
|
||||
/** NLA Strip Extrapolation Mode. */
|
||||
typedef enum eNlaStrip_Extrapolate_Mode {
|
||||
/* extend before first frame if no previous strips in track,
|
||||
* and always hold+extend last frame */
|
||||
|
|
|
@ -97,7 +97,7 @@ typedef struct BrushGpencilSettings {
|
|||
/** Simplify adaptive factor */
|
||||
float simplify_f;
|
||||
|
||||
/** Mix colorfactor */
|
||||
/** Mix color-factor. */
|
||||
float vertex_factor;
|
||||
int vertex_mode;
|
||||
|
||||
|
|
|
@ -314,7 +314,7 @@ typedef struct ThemeSpace {
|
|||
char _pad5[3];
|
||||
float dash_alpha;
|
||||
|
||||
/* syntax for textwindow and nodes */
|
||||
/* Syntax for text-window and nodes. */
|
||||
unsigned char syntaxl[4], syntaxs[4]; /* in nodespace used for backdrop matte */
|
||||
unsigned char syntaxb[4], syntaxn[4]; /* in nodespace used for color input */
|
||||
unsigned char syntaxv[4], syntaxc[4]; /* in nodespace used for converter group */
|
||||
|
@ -858,7 +858,7 @@ typedef struct UserDef {
|
|||
|
||||
float glalphaclip;
|
||||
|
||||
/** #eAutokey_Mode, autokeying mode. */
|
||||
/** #eAutokey_Mode, auto-keying mode. */
|
||||
short autokey_mode;
|
||||
/** Flags for autokeying. */
|
||||
short autokey_flag;
|
||||
|
|
|
@ -915,7 +915,7 @@ static void rna_wmKeyMapItem_map_type_set(PointerRNA *ptr, int value)
|
|||
|
||||
/**
|
||||
* Assumes value to be an enum from rna_enum_event_type_items.
|
||||
* Function makes sure keymodifiers are only valid keys, ESC keeps it unaltered.
|
||||
* Function makes sure key-modifiers are only valid keys, ESC keeps it unaltered.
|
||||
*/
|
||||
static void rna_wmKeyMapItem_keymodifier_set(PointerRNA *ptr, int value)
|
||||
{
|
||||
|
|
|
@ -897,7 +897,7 @@ static Mesh *explodeMesh(ExplodeModifierData *emd,
|
|||
{
|
||||
Mesh *explode, *mesh = to_explode;
|
||||
MFace *mf = NULL, *mface;
|
||||
/* ParticleSettings *part=psmd->psys->part; */ /* UNUSED */
|
||||
// ParticleSettings *part=psmd->psys->part; /* UNUSED */
|
||||
ParticleSimulationData sim = {NULL};
|
||||
ParticleData *pa = NULL, *pars = psmd->psys->particles;
|
||||
ParticleKey state, birth;
|
||||
|
@ -906,7 +906,7 @@ static Mesh *explodeMesh(ExplodeModifierData *emd,
|
|||
float *vertco = NULL, imat[4][4];
|
||||
float rot[4];
|
||||
float ctime;
|
||||
/* float timestep; */
|
||||
// float timestep;
|
||||
const int *facepa = emd->facepa;
|
||||
int totdup = 0, totvert = 0, totface = 0, totpart = 0, delface = 0;
|
||||
int i, v, u;
|
||||
|
@ -923,7 +923,7 @@ static Mesh *explodeMesh(ExplodeModifierData *emd,
|
|||
sim.psys = psmd->psys;
|
||||
sim.psmd = psmd;
|
||||
|
||||
/* timestep = psys_get_timestep(&sim); */
|
||||
// timestep = psys_get_timestep(&sim);
|
||||
|
||||
ctime = BKE_scene_ctime_get(scene);
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ struct RenderResult *render_result_new(struct Render *re,
|
|||
void render_result_passes_allocated_ensure(struct RenderResult *rr);
|
||||
|
||||
/**
|
||||
* From imbuf, if a handle was returned and
|
||||
* From `imbuf`, if a handle was returned and
|
||||
* it's not a single-layer multi-view we convert this to render result.
|
||||
*/
|
||||
struct RenderResult *render_result_new_from_exr(
|
||||
|
|
|
@ -496,9 +496,8 @@ static void wm_job_end(wmJob *wm_job)
|
|||
}
|
||||
|
||||
/* Do the final callback based on whether the job was run to completion or not.
|
||||
* Not all jobs have the same way of signalling cancellation (f.e. rendering
|
||||
* stops when G.is_break=true, but doesn't set any wm_job properties to cancel
|
||||
* the WM job). */
|
||||
* Not all jobs have the same way of signaling cancellation (i.e. rendering stops when
|
||||
* `G.is_break == true`, but doesn't set any wm_job properties to cancel the WM job). */
|
||||
const bool was_canceled = wm_job->stop || G.is_break;
|
||||
void (*final_callback)(void *) = (wm_job->ready && !was_canceled) ? wm_job->completed :
|
||||
wm_job->canceled;
|
||||
|
|
|
@ -3898,7 +3898,7 @@ static void gesture_box_modal_keymap(wmKeyConfig *keyconf)
|
|||
WM_modalkeymap_assign(keymap, "VIEW3D_OT_clip_border");
|
||||
WM_modalkeymap_assign(keymap, "VIEW3D_OT_render_border");
|
||||
WM_modalkeymap_assign(keymap, "VIEW3D_OT_select_box");
|
||||
/* XXX TODO: zoom border should perhaps map rightmouse to zoom out instead of in+cancel */
|
||||
/* XXX TODO: zoom border should perhaps map right-mouse to zoom out instead of in+cancel. */
|
||||
WM_modalkeymap_assign(keymap, "VIEW3D_OT_zoom_border");
|
||||
WM_modalkeymap_assign(keymap, "IMAGE_OT_render_border");
|
||||
WM_modalkeymap_assign(keymap, "IMAGE_OT_view_zoom_border");
|
||||
|
|
Loading…
Reference in New Issue