diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-09-10 02:45:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-09-10 02:45:25 +0300 |
commit | 5badf1653173a23607244ebbda72c710860ea795 (patch) | |
tree | eb1519f5642fc7b10aa1162492c2415b87171d9b /source/blender/blenkernel/intern | |
parent | 0721fbb6e1e28bb7afd33f3c4d00c0fd53e292cb (diff) |
Cleanup: spelling
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/layer.c | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/nla.c | 14 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/sequencer.c | 31 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/softbody.c | 2 |
4 files changed, 24 insertions, 25 deletions
diff --git a/source/blender/blenkernel/intern/layer.c b/source/blender/blenkernel/intern/layer.c index 05ab03d75a2..1ad34fde0fa 100644 --- a/source/blender/blenkernel/intern/layer.c +++ b/source/blender/blenkernel/intern/layer.c @@ -1248,7 +1248,7 @@ void BKE_layer_collection_local_sync(ViewLayer *view_layer, const View3D *v3d) } /** - * Sync the local collection for all the viewports. + * Sync the local collection for all the view-ports. */ void BKE_layer_collection_local_sync_all(const Main *bmain) { diff --git a/source/blender/blenkernel/intern/nla.c b/source/blender/blenkernel/intern/nla.c index 0c3abc70a43..b7d6c7a5a28 100644 --- a/source/blender/blenkernel/intern/nla.c +++ b/source/blender/blenkernel/intern/nla.c @@ -1284,12 +1284,11 @@ static void nlastrip_fix_resize_overlaps(NlaStrip *strip) nls->start = strip->end; } else { - /* shrink transition down to 1 frame long (so that it can still be found), - * then offset everything else by the remaining defict to give the strip room - */ + /* Shrink transition down to 1 frame long (so that it can still be found), + * then offset everything else by the remaining deficit to give the strip room. */ nls->start = nls->end - 1.0f; - /* XXX: review whether preventing fractionals is good here... */ + /* XXX: review whether preventing fractional values is good here... */ offset = ceilf(strip->end - nls->start); /* apply necessary offset to ensure that the strip has enough space */ @@ -1333,12 +1332,11 @@ static void nlastrip_fix_resize_overlaps(NlaStrip *strip) nls->end = strip->start; } else { - /* shrink transition down to 1 frame long (so that it can still be found), - * then offset everything else by the remaining defict to give the strip room - */ + /* Shrink transition down to 1 frame long (so that it can still be found), + * then offset everything else by the remaining deficit to give the strip room. */ nls->end = nls->start + 1.0f; - /* XXX: review whether preventing fractionals is good here... */ + /* XXX: review whether preventing fractional values is good here... */ offset = ceilf(nls->end - strip->start); /* apply necessary offset to ensure that the strip has enough space */ diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c index 92c5af127fc..6c950c4b33f 100644 --- a/source/blender/blenkernel/intern/sequencer.c +++ b/source/blender/blenkernel/intern/sequencer.c @@ -1529,20 +1529,17 @@ static int evaluate_seq_frame_gen(Sequence **seq_arr, ListBase *seqbase, int cfr /* Drop strips which are used for effect inputs, we don't want * them to blend into render stack in any other way than effect - * string rendering. - */ + * string rendering. */ for (LinkNode *seq_item = effect_inputs.list; seq_item; seq_item = seq_item->next) { Sequence *seq = seq_item->link; - /* It's possible that effetc strip would be placed to the same + /* It's possible that effect strip would be placed to the same * 'machine' as it's inputs. We don't want to clear such strips - * from the stack. - */ + * from the stack. */ if (seq_arr[seq->machine] && seq_arr[seq->machine]->type & SEQ_TYPE_EFFECT) { continue; } - /* If we're shown a specified channel, then we want to see the stirps - * which belongs to this machine. - */ + /* If we're shown a specified channel, then we want to see the strips + * which belongs to this machine. */ if (chanshown != 0 && chanshown <= seq->machine) { continue; } @@ -1776,7 +1773,7 @@ static void seq_open_anim_file(Scene *scene, Sequence *seq, bool openfile) seq->strip->colorspace_settings.name); } - /* no individual view files - monoscopic, stereo 3d or exr multiview */ + /* No individual view files - monoscopic, stereo 3d or EXR multi-view. */ totfiles = 1; } @@ -1829,7 +1826,7 @@ static bool seq_proxy_get_custom_file_fname(Sequence *seq, char *name, const int if (view_id > 0) { BLI_snprintf(suffix, sizeof(suffix), "_%d", view_id); /* TODO(sergey): This will actually append suffix after extension - * which is weird but how was originally coded in multiview branch. + * which is weird but how was originally coded in multi-view branch. */ BLI_snprintf(name, PROXY_MAXFILE, "%s_%s", fname, suffix); } @@ -1855,7 +1852,7 @@ static bool seq_proxy_get_fname(Editing *ed, return false; } - /* Multiview suffix. */ + /* Multi-view suffix. */ if (view_id > 0) { BLI_snprintf(suffix, sizeof(suffix), "_%d", view_id); } @@ -2566,7 +2563,9 @@ static void *color_balance_do_thread(void *thread_data_v) return NULL; } -/* cfra is offset by fra_offset only in case we are using a real mask. */ +/** + * \a cfra is offset by \a fra_offset only in case we are using a real mask. + */ ImBuf *BKE_sequencer_render_mask_input(const SeqRenderData *context, int mask_input_type, Sequence *mask_sequence, @@ -2968,7 +2967,7 @@ static ImBuf *seq_render_effect_strip_impl(const SeqRenderData *context, break; case EARLY_DO_EFFECT: for (i = 0; i < 3; i++) { - /* Speed effect requires time remapping of cfra for input(s). */ + /* Speed effect requires time remapping of `cfra` for input(s). */ if (input[0] && seq->type == SEQ_TYPE_SPEED) { float target_frame = BKE_sequencer_speed_effect_target_frame_get(context, seq, cfra, i); ibuf[i] = seq_render_strip(context, state, input[0], target_frame); @@ -3013,7 +3012,9 @@ static ImBuf *seq_render_effect_strip_impl(const SeqRenderData *context, return out; } -/* Render individual view for multiview or single (default view) for monoview. */ +/** + * Render individual view for multi-view or single (default view) for mono-view. + */ static ImBuf *seq_render_image_strip_view(const SeqRenderData *context, Sequence *seq, char *name, @@ -3048,7 +3049,7 @@ static ImBuf *seq_render_image_strip_view(const SeqRenderData *context, imb_freerectImBuf(ibuf); } - /* All sequencer color is done in SRGB space, linear gives odd crossfades. */ + /* All sequencer color is done in SRGB space, linear gives odd cross-fades. */ BKE_sequencer_imbuf_to_sequencer_space(context->scene, ibuf, false); return ibuf; diff --git a/source/blender/blenkernel/intern/softbody.c b/source/blender/blenkernel/intern/softbody.c index 1ebbc1e2d77..88b32e194cf 100644 --- a/source/blender/blenkernel/intern/softbody.c +++ b/source/blender/blenkernel/intern/softbody.c @@ -211,7 +211,7 @@ static float sb_time_scale(Object *ob) * will cause unwanted responses of the softbody system (which does inter frame calculations ) * so first 'cure' would be: interpolate linear in time .. * Q: why do i write this? - * A: because it happened once, that some eger coder 'streamlined' code to fail. + * A: because it happened once, that some eager coder 'streamlined' code to fail. * We DO linear interpolation for goals .. and i think we should do on animated properties as well */ |