forked from bartvdbraak/blender
Cleanup: spelling
This commit is contained in:
parent
03afffc96a
commit
006e850a84
@ -1951,7 +1951,7 @@ void GHOST_SystemX11::getClipboard_xcout(const XEvent *evt,
|
|||||||
switch (*context) {
|
switch (*context) {
|
||||||
/* There is no context, do an XConvertSelection() */
|
/* There is no context, do an XConvertSelection() */
|
||||||
case XCLIB_XCOUT_NONE:
|
case XCLIB_XCOUT_NONE:
|
||||||
/* Initialise return length to 0 */
|
/* Initialize return length to 0. */
|
||||||
if (*len > 0) {
|
if (*len > 0) {
|
||||||
free(*txt);
|
free(*txt);
|
||||||
*len = 0;
|
*len = 0;
|
||||||
|
@ -351,7 +351,7 @@ typedef struct SKY_ArHosekSkyModelState {
|
|||||||
arhosekskymodelstate_alloc_init() function
|
arhosekskymodelstate_alloc_init() function
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
|
|
||||||
Initialises an ArHosekSkyModelState struct for a terrestrial setting.
|
Initializes an #ArHosekSkyModelState struct for a terrestrial setting.
|
||||||
|
|
||||||
---------------------------------------------------------------------------- */
|
---------------------------------------------------------------------------- */
|
||||||
|
|
||||||
@ -364,7 +364,7 @@ SKY_ArHosekSkyModelState *SKY_arhosekskymodelstate_alloc_init(const double solar
|
|||||||
arhosekskymodelstate_alienworld_alloc_init() function
|
arhosekskymodelstate_alienworld_alloc_init() function
|
||||||
-----------------------------------------------------
|
-----------------------------------------------------
|
||||||
|
|
||||||
Initialises an ArHosekSkyModelState struct for an "alien world" setting
|
Initializes an ArHosekSkyModelState struct for an "alien world" setting
|
||||||
with a sun of a surface temperature given in 'kelvin'. The parameter
|
with a sun of a surface temperature given in 'kelvin'. The parameter
|
||||||
'solar_intensity' controls the overall brightness of the sky, relative
|
'solar_intensity' controls the overall brightness of the sky, relative
|
||||||
to the solar irradiance on Earth. A value of 1.0 yields a sky dome that
|
to the solar irradiance on Earth. A value of 1.0 yields a sky dome that
|
||||||
|
@ -1150,7 +1150,7 @@ static int nlaevalchan_validate_index(NlaEvalChannel *nec, int index)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialise default values for NlaEvalChannel from the property data. */
|
/* Initialize default values for NlaEvalChannel from the property data. */
|
||||||
static void nlaevalchan_get_default_values(NlaEvalChannel *nec, float *r_values)
|
static void nlaevalchan_get_default_values(NlaEvalChannel *nec, float *r_values)
|
||||||
{
|
{
|
||||||
PointerRNA *ptr = &nec->key.ptr;
|
PointerRNA *ptr = &nec->key.ptr;
|
||||||
|
@ -221,7 +221,7 @@ ViewLayer *BKE_view_layer_add(Scene *scene,
|
|||||||
view_layer_new = view_layer_add(name);
|
view_layer_new = view_layer_add(name);
|
||||||
BLI_addtail(&scene->view_layers, view_layer_new);
|
BLI_addtail(&scene->view_layers, view_layer_new);
|
||||||
|
|
||||||
/* Initialise layercollections */
|
/* Initialize layer-collections. */
|
||||||
BKE_layer_collection_sync(scene, view_layer_new);
|
BKE_layer_collection_sync(scene, view_layer_new);
|
||||||
layer_collection_exclude_all(view_layer_new->layer_collections.first);
|
layer_collection_exclude_all(view_layer_new->layer_collections.first);
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ SessionUUID BLI_session_uuid_generate(void)
|
|||||||
* Just request the UUID once again, hoping that there are no a lot of high-priority threads
|
* Just request the UUID once again, hoping that there are no a lot of high-priority threads
|
||||||
* which will overflow the counter once again between the previous call and this one.
|
* which will overflow the counter once again between the previous call and this one.
|
||||||
*
|
*
|
||||||
* NOTE: It is possible to have collissions after such overflow. */
|
* NOTE: It is possible to have collisions after such overflow. */
|
||||||
result.uuid_ = atomic_add_and_fetch_uint64(&global_session_uuid.uuid_, 1);
|
result.uuid_ = atomic_add_and_fetch_uint64(&global_session_uuid.uuid_, 1);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
@ -1771,7 +1771,7 @@ static int gpencil_blank_frame_add_exec(bContext *C, wmOperator *op)
|
|||||||
|
|
||||||
const bool all_layers = RNA_boolean_get(op->ptr, "all_layers");
|
const bool all_layers = RNA_boolean_get(op->ptr, "all_layers");
|
||||||
|
|
||||||
/* Initialise datablock and an active layer if nothing exists yet */
|
/* Initialize data-block and an active layer if nothing exists yet. */
|
||||||
if (ELEM(NULL, gpd, active_gpl)) {
|
if (ELEM(NULL, gpd, active_gpl)) {
|
||||||
/* Let's just be lazy, and call the "Add New Layer" operator,
|
/* Let's just be lazy, and call the "Add New Layer" operator,
|
||||||
* which sets everything up as required. */
|
* which sets everything up as required. */
|
||||||
@ -4290,14 +4290,14 @@ static int gpencil_stroke_separate_exec(bContext *C, wmOperator *op)
|
|||||||
base_new = ED_object_add_duplicate(bmain, scene, view_layer, base_prev, dupflag);
|
base_new = ED_object_add_duplicate(bmain, scene, view_layer, base_prev, dupflag);
|
||||||
ob_dst = base_new->object;
|
ob_dst = base_new->object;
|
||||||
ob_dst->mode = OB_MODE_OBJECT;
|
ob_dst->mode = OB_MODE_OBJECT;
|
||||||
/* Duplication will increment bGPdata usercount, but since we create a new greasepencil datablock
|
/* Duplication will increment #bGPdata user-count, but since we create a new grease-pencil
|
||||||
* for ob_dst (which gets its own user automatically), we have to decrement the usercount again.
|
* data-block for ob_dst (which gets its own user automatically),
|
||||||
*/
|
* we have to decrement the user-count again. */
|
||||||
gpd_dst = BKE_gpencil_data_addnew(bmain, gpd_src->id.name + 2);
|
gpd_dst = BKE_gpencil_data_addnew(bmain, gpd_src->id.name + 2);
|
||||||
id_us_min(ob_dst->data);
|
id_us_min(ob_dst->data);
|
||||||
ob_dst->data = (bGPdata *)gpd_dst;
|
ob_dst->data = (bGPdata *)gpd_dst;
|
||||||
|
|
||||||
/* loop old datablock and separate parts */
|
/* Loop old data-block and separate parts. */
|
||||||
if ((mode == GP_SEPARATE_POINT) || (mode == GP_SEPARATE_STROKE)) {
|
if ((mode == GP_SEPARATE_POINT) || (mode == GP_SEPARATE_STROKE)) {
|
||||||
CTX_DATA_BEGIN (C, bGPDlayer *, gpl, editable_gpencil_layers) {
|
CTX_DATA_BEGIN (C, bGPDlayer *, gpl, editable_gpencil_layers) {
|
||||||
gpl_dst = NULL;
|
gpl_dst = NULL;
|
||||||
|
@ -1085,7 +1085,7 @@ static void gpencil_primitive_update(bContext *C, wmOperator *op, tGPDprimitive
|
|||||||
gpencil_primitive_update_strokes(C, tgpi);
|
gpencil_primitive_update_strokes(C, tgpi);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialise mouse points */
|
/* Initialize mouse points. */
|
||||||
static void gpencil_primitive_interaction_begin(tGPDprimitive *tgpi, const wmEvent *event)
|
static void gpencil_primitive_interaction_begin(tGPDprimitive *tgpi, const wmEvent *event)
|
||||||
{
|
{
|
||||||
copy_v2fl_v2i(tgpi->mval, event->mval);
|
copy_v2fl_v2i(tgpi->mval, event->mval);
|
||||||
|
@ -910,13 +910,13 @@ typedef struct tGPSB_CloneBrushData {
|
|||||||
GHash *new_colors;
|
GHash *new_colors;
|
||||||
} tGPSB_CloneBrushData;
|
} tGPSB_CloneBrushData;
|
||||||
|
|
||||||
/* Initialise "clone" brush data */
|
/* Initialize "clone" brush data. */
|
||||||
static void gpencil_brush_clone_init(bContext *C, tGP_BrushEditData *gso)
|
static void gpencil_brush_clone_init(bContext *C, tGP_BrushEditData *gso)
|
||||||
{
|
{
|
||||||
tGPSB_CloneBrushData *data;
|
tGPSB_CloneBrushData *data;
|
||||||
bGPDstroke *gps;
|
bGPDstroke *gps;
|
||||||
|
|
||||||
/* init custom data */
|
/* Initialize custom-data. */
|
||||||
gso->customdata = data = MEM_callocN(sizeof(tGPSB_CloneBrushData), "CloneBrushData");
|
gso->customdata = data = MEM_callocN(sizeof(tGPSB_CloneBrushData), "CloneBrushData");
|
||||||
|
|
||||||
/* compute midpoint of strokes on clipboard */
|
/* compute midpoint of strokes on clipboard */
|
||||||
|
@ -477,7 +477,7 @@ static SculptClothSimulation *cloth_brush_simulation_create(SculptSession *ss,
|
|||||||
cloth_sim->length_constraint_tweak = MEM_calloc_arrayN(
|
cloth_sim->length_constraint_tweak = MEM_calloc_arrayN(
|
||||||
totverts, sizeof(float), "cloth sim length tweak");
|
totverts, sizeof(float), "cloth sim length tweak");
|
||||||
|
|
||||||
/* Brush can be NULL for tools that neeed the solver but don't rely on constraint to deformation
|
/* Brush can be NULL for tools that need the solver but don't rely on constraint to deformation
|
||||||
* positions. */
|
* positions. */
|
||||||
if (brush && SCULPT_is_cloth_deform_brush(brush)) {
|
if (brush && SCULPT_is_cloth_deform_brush(brush)) {
|
||||||
cloth_sim->deformation_pos = MEM_calloc_arrayN(
|
cloth_sim->deformation_pos = MEM_calloc_arrayN(
|
||||||
|
@ -2924,8 +2924,8 @@ static int sequencer_meta_separate_exec(bContext *C, wmOperator *UNUSED(op))
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* This moves strips from meta to parent, sating within same edit and no new strips are
|
/* This moves strips from meta to parent, sating within same edit and no new strips are
|
||||||
* allocated. If the UUID was unique already (as it should) it will stay unique. Nn need to
|
* allocated. If the UUID was unique already (as it should) it will stay unique.
|
||||||
* re-generate the UUIDs.*/
|
* No need to re-generate the UUIDs. */
|
||||||
BLI_movelisttolist(ed->seqbasep, &last_seq->seqbase);
|
BLI_movelisttolist(ed->seqbasep, &last_seq->seqbase);
|
||||||
|
|
||||||
BLI_listbase_clear(&last_seq->seqbase);
|
BLI_listbase_clear(&last_seq->seqbase);
|
||||||
|
Loading…
Reference in New Issue
Block a user