forked from bartvdbraak/blender
Cleanup: spelling (initialized)
This commit is contained in:
parent
901ee66ea1
commit
6119f3cad1
@ -118,7 +118,7 @@ static const char *get_egl_error_message_string(EGLint error)
|
||||
case EGL_CONTEXT_LOST:
|
||||
return (
|
||||
"A power management event has occurred. "
|
||||
"The application must destroy all contexts and reinitialise OpenGL ES state "
|
||||
"The application must destroy all contexts and reinitialize OpenGL ES state "
|
||||
"and objects to continue rendering.");
|
||||
|
||||
default:
|
||||
|
@ -112,7 +112,7 @@ bands, you would need something like
|
||||
|
||||
ArHosekSkyModelState * skymodel_state[num_channels];
|
||||
|
||||
You then have to allocate and initialise these states. In the following code
|
||||
You then have to allocate and initialize these states. In the following code
|
||||
snippet, we assume that 'albedo' is defined as
|
||||
|
||||
double albedo[num_channels];
|
||||
@ -228,7 +228,7 @@ actually not altered at all in this release. All we did was to add some support
|
||||
functionality for doing this more easily with the existing data and functions,
|
||||
and to add some explanations.
|
||||
|
||||
Just use 'arhosekskymodelstate_alienworld_alloc_init()' to initialise the sky
|
||||
Just use 'arhosekskymodelstate_alienworld_alloc_init()' to initialize the sky
|
||||
model states (you will have to provide values for star temperature and solar
|
||||
intensity compared to the terrestrial sun), and do everything else as you
|
||||
did before.
|
||||
|
@ -4584,7 +4584,7 @@ static void system_step(ParticleSimulationData *sim, float cfra, const bool use_
|
||||
psys->dt_frac = get_base_time_step(part);
|
||||
}
|
||||
else if ((int)cfra == startframe) {
|
||||
/* Variable time step; initialise to subframes */
|
||||
/* Variable time step; initialize to sub-frames. */
|
||||
psys->dt_frac = get_base_time_step(part);
|
||||
}
|
||||
else if (psys->dt_frac < MIN_TIMESTEP) {
|
||||
|
@ -965,7 +965,7 @@ void blo_do_versions_250(FileData *fd, Library *lib, Main *bmain)
|
||||
bPoseChannel *pchan;
|
||||
|
||||
for (pchan = ob->pose->chanbase.first; pchan; pchan = pchan->next) {
|
||||
/* just need to initialise rotation axis properly... */
|
||||
/* Just need to initialize rotation axis properly. */
|
||||
pchan->rotAxis[1] = 1.0f;
|
||||
}
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ template<int fxu, int fxv, int fyu, int fyv> struct BufferLineAccumulator {
|
||||
return;
|
||||
}
|
||||
|
||||
/* initialise the iteration variables */
|
||||
/* Initialize the iteration variables. */
|
||||
float *buffer = init_buffer_iterator(
|
||||
input, source, co, dist_min, dist_max, x, y, num, v, dv, falloff_factor);
|
||||
zero_v3(border);
|
||||
|
@ -427,7 +427,7 @@ bool ANIM_animdata_get_context(const bContext *C, bAnimContext *ac)
|
||||
ac->spacetype = (area) ? area->spacetype : 0;
|
||||
ac->regiontype = (region) ? region->regiontype : 0;
|
||||
|
||||
/* initialise default y-scale factor */
|
||||
/* Initialize default y-scale factor. */
|
||||
animedit_get_yscale_factor(ac);
|
||||
|
||||
/* get data context info */
|
||||
|
@ -251,7 +251,7 @@ static int pose_slide_init(bContext *C, wmOperator *op, ePoseSlide_Modes mode)
|
||||
*/
|
||||
BLI_dlrbTree_init(&pso->keys);
|
||||
|
||||
/* initialise numeric input */
|
||||
/* Initialize numeric input. */
|
||||
initNumInput(&pso->num);
|
||||
pso->num.idx_max = 0; /* one axis */
|
||||
pso->num.val_flag[0] |= NUM_NO_NEGATIVE;
|
||||
@ -1310,7 +1310,7 @@ static int pose_slide_push_invoke(bContext *C, wmOperator *op, const wmEvent *ev
|
||||
|
||||
pso = op->customdata;
|
||||
|
||||
/* initialise percentage so that it won't pop on first mouse move */
|
||||
/* Initialize percentage so that it won't pop on first mouse move. */
|
||||
pose_slide_mouse_update_percentage(pso, op, event);
|
||||
|
||||
/* do common setup work */
|
||||
@ -1370,7 +1370,7 @@ static int pose_slide_relax_invoke(bContext *C, wmOperator *op, const wmEvent *e
|
||||
|
||||
pso = op->customdata;
|
||||
|
||||
/* initialise percentage so that it won't pop on first mouse move */
|
||||
/* Initialize percentage so that it won't pop on first mouse move. */
|
||||
pose_slide_mouse_update_percentage(pso, op, event);
|
||||
|
||||
/* do common setup work */
|
||||
@ -1429,7 +1429,7 @@ static int pose_slide_push_rest_invoke(bContext *C, wmOperator *op, const wmEven
|
||||
|
||||
pso = op->customdata;
|
||||
|
||||
/* initialise percentage so that it won't pop on first mouse move */
|
||||
/* Initialize percentage so that it won't pop on first mouse move. */
|
||||
pose_slide_mouse_update_percentage(pso, op, event);
|
||||
|
||||
/* do common setup work */
|
||||
@ -1489,7 +1489,7 @@ static int pose_slide_relax_rest_invoke(bContext *C, wmOperator *op, const wmEve
|
||||
|
||||
pso = op->customdata;
|
||||
|
||||
/* initialise percentage so that it won't pop on first mouse move */
|
||||
/* Initialize percentage so that it won't pop on first mouse move. */
|
||||
pose_slide_mouse_update_percentage(pso, op, event);
|
||||
|
||||
/* do common setup work */
|
||||
@ -1549,7 +1549,7 @@ static int pose_slide_breakdown_invoke(bContext *C, wmOperator *op, const wmEven
|
||||
|
||||
pso = op->customdata;
|
||||
|
||||
/* initialise percentage so that it won't pop on first mouse move */
|
||||
/* Initialize percentage so that it won't pop on first mouse move. */
|
||||
pose_slide_mouse_update_percentage(pso, op, event);
|
||||
|
||||
/* do common setup work */
|
||||
|
@ -603,7 +603,7 @@ static short annotation_stroke_addpoint(tGPsdata *p,
|
||||
/* store settings */
|
||||
copy_v2_v2(&pt->x, mval);
|
||||
pt->pressure = pressure;
|
||||
/* unused for annotations, but initialise for easier conversions to GP Object */
|
||||
/* Unused for annotations, but initialize for easier conversions to GP Object. */
|
||||
pt->strength = 1.0f;
|
||||
|
||||
/* point time */
|
||||
|
@ -444,7 +444,9 @@ typedef struct tGPSB_Grab_StrokeData {
|
||||
int size;
|
||||
} tGPSB_Grab_StrokeData;
|
||||
|
||||
/* initialise custom data for handling this stroke */
|
||||
/**
|
||||
* Initialize custom data for handling this stroke.
|
||||
*/
|
||||
static void gpencil_brush_grab_stroke_init(tGP_BrushEditData *gso, bGPDstroke *gps)
|
||||
{
|
||||
tGPSB_Grab_StrokeData *data = NULL;
|
||||
@ -1203,7 +1205,7 @@ static bool gpencil_sculpt_brush_init(bContext *C, wmOperator *op)
|
||||
BKE_curvemapping_init(ts->gp_sculpt.cur_falloff);
|
||||
}
|
||||
|
||||
/* initialise custom data for brushes */
|
||||
/* Initialize custom data for brushes. */
|
||||
char tool = gso->brush->gpencil_sculpt_tool;
|
||||
switch (tool) {
|
||||
case GPSCULPT_TOOL_CLONE: {
|
||||
@ -1229,13 +1231,13 @@ static bool gpencil_sculpt_brush_init(bContext *C, wmOperator *op)
|
||||
op->customdata = NULL;
|
||||
return false;
|
||||
}
|
||||
/* initialise customdata */
|
||||
/* Initialize custom-data. */
|
||||
gpencil_brush_clone_init(C, gso);
|
||||
break;
|
||||
}
|
||||
|
||||
case GPSCULPT_TOOL_GRAB: {
|
||||
/* initialise the cache needed for this brush */
|
||||
/* Initialize the cache needed for this brush. */
|
||||
gso->stroke_customdata = BLI_ghash_ptr_new("GP Grab Brush - Strokes Hash");
|
||||
break;
|
||||
}
|
||||
@ -1936,7 +1938,7 @@ static int gpencil_sculpt_brush_invoke(bContext *C, wmOperator *op, const wmEven
|
||||
|
||||
gso = op->customdata;
|
||||
|
||||
/* initialise type-specific data (used for the entire session) */
|
||||
/* Initialize type-specific data (used for the entire session). */
|
||||
char tool = gso->brush->gpencil_sculpt_tool;
|
||||
switch (tool) {
|
||||
/* Brushes requiring timer... */
|
||||
|
@ -374,7 +374,7 @@ void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy)
|
||||
break;
|
||||
}
|
||||
|
||||
/* set initialized flag so that View2D doesn't get reinitialised next time again */
|
||||
/* set initialized flag so that View2D doesn't get reinitialized next time again */
|
||||
v2d->flag |= V2D_IS_INIT;
|
||||
|
||||
/* store view size */
|
||||
|
@ -1237,7 +1237,7 @@ static int object_gpencil_add_exec(bContext *C, wmOperator *op)
|
||||
break;
|
||||
}
|
||||
|
||||
/* if this is a new object, initialise default stuff (colors, etc.) */
|
||||
/* If this is a new object, initialize default stuff (colors, etc.) */
|
||||
if (newob) {
|
||||
/* set default viewport color to black */
|
||||
copy_v3_fl(ob->color, 0.0f);
|
||||
|
@ -1487,7 +1487,7 @@ static int graphkeys_decimate_invoke(bContext *C, wmOperator *op, const wmEvent
|
||||
dgo->area = CTX_wm_area(C);
|
||||
dgo->region = CTX_wm_region(C);
|
||||
|
||||
/* initialise percentage so that it will have the correct value before the first mouse move. */
|
||||
/* Initialize percentage so that it will have the correct value before the first mouse move. */
|
||||
decimate_mouse_update_percentage(dgo, op, event);
|
||||
|
||||
decimate_draw_status_header(op, dgo);
|
||||
|
@ -47,7 +47,7 @@ class BlendfileLoadingBaseTest : public testing::Test {
|
||||
* Requires the CLI argument --test-asset-dir to point to ../../lib/tests.
|
||||
*
|
||||
* WARNING: only files saved with Blender 2.80+ can be loaded. Since Blender
|
||||
* is only partially initialised (most importantly, without window manager),
|
||||
* is only partially initialized (most importantly, without window manager),
|
||||
* the space types are not registered, so any versioning code that handles
|
||||
* those will SEGFAULT.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user