diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-12-08 16:55:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-12-08 17:14:10 +0300 |
commit | 61776befc3f88c373e47ccbdf8c75e2ca0f4e987 (patch) | |
tree | 0214b7c5146300d41b7bcbe99f87c92599608e7f /source/blender/editors/space_sequencer | |
parent | 8f1997975dc60bc1c18992458603ecd58dfded6d (diff) |
Cleanup: move public doc-strings into headers for 'editors'
Ref T92709
Diffstat (limited to 'source/blender/editors/space_sequencer')
4 files changed, 8 insertions, 17 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c index 896b64d97af..e814530d1e2 100644 --- a/source/blender/editors/space_sequencer/sequencer_draw.c +++ b/source/blender/editors/space_sequencer/sequencer_draw.c @@ -668,7 +668,6 @@ static void drawmeta_contents(Scene *scene, GPU_blend(GPU_BLEND_NONE); } -/* Get handle width in 2d-View space. */ float sequence_handle_size_get_clamped(Sequence *seq, const float pixelx) { const float maxhandle = (pixelx * SEQ_HANDLE_SIZE) * U.pixelsize; @@ -1517,13 +1516,6 @@ void ED_sequencer_special_preview_clear(void) sequencer_special_update_set(NULL); } -/** - * Rendering using opengl will change the current viewport/context. - * This is why we need the \a region, to set back the render area. - * - * TODO: do not rely on such hack and just update the \a ibuf outside of - * the UI drawing code. - */ ImBuf *sequencer_ibuf_get(struct Main *bmain, ARegion *region, struct Depsgraph *depsgraph, diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c index 71fd6bb80f5..e9f37fa6838 100644 --- a/source/blender/editors/space_sequencer/sequencer_edit.c +++ b/source/blender/editors/space_sequencer/sequencer_edit.c @@ -127,7 +127,6 @@ bool ED_space_sequencer_maskedit_poll(bContext *C) return false; } -/* Are we displaying the seq output (not channels or histogram). */ bool ED_space_sequencer_check_show_imbuf(SpaceSeq *sseq) { return (sseq->mainb == SEQ_DRAW_IMG_IMBUF) && @@ -152,12 +151,6 @@ static bool sequencer_fcurves_targets_color_strip(const FCurve *fcurve) return true; } -/* - * Check if there is animation shown during playback. - * - * - Colors of color strips are displayed on the strip itself. - * - Backdrop is drawn. - */ bool ED_space_sequencer_has_playback_animation(const struct SpaceSeq *sseq, const struct Scene *scene) { @@ -187,7 +180,6 @@ bool ED_space_sequencer_has_playback_animation(const struct SpaceSeq *sseq, /** \name Shared Poll Functions * \{ */ -/* Operator functions. */ bool sequencer_edit_poll(bContext *C) { return (SEQ_editing_get(CTX_data_scene(C)) != NULL); diff --git a/source/blender/editors/space_sequencer/sequencer_intern.h b/source/blender/editors/space_sequencer/sequencer_intern.h index d6360be8693..cb33c648b0a 100644 --- a/source/blender/editors/space_sequencer/sequencer_intern.h +++ b/source/blender/editors/space_sequencer/sequencer_intern.h @@ -61,11 +61,19 @@ void color3ubv_from_seq(const struct Scene *curscene, uchar r_col[3]); void sequencer_special_update_set(Sequence *seq); +/* Get handle width in 2d-View space. */ float sequence_handle_size_get_clamped(struct Sequence *seq, const float pixelx); /* UNUSED */ /* void seq_reset_imageofs(struct SpaceSeq *sseq); */ +/** + * Rendering using opengl will change the current viewport/context. + * This is why we need the \a region, to set back the render area. + * + * TODO: do not rely on such hack and just update the \a ibuf outside of + * the UI drawing code. + */ struct ImBuf *sequencer_ibuf_get(struct Main *bmain, struct ARegion *region, struct Depsgraph *depsgraph, diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c index f6f8e45590f..b93f421ff5c 100644 --- a/source/blender/editors/space_sequencer/space_sequencer.c +++ b/source/blender/editors/space_sequencer/space_sequencer.c @@ -1005,7 +1005,6 @@ static void sequencer_id_remap(ScrArea *UNUSED(area), SpaceLink *slink, ID *old_ /* ************************************* */ -/* Only called once, from space/spacetypes.c. */ void ED_spacetype_sequencer(void) { SpaceType *st = MEM_callocN(sizeof(SpaceType), "spacetype sequencer"); |