Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2019-03-18 19:28:36 +0300
committerJacques Lucke <mail@jlucke.com>2019-03-18 19:28:52 +0300
commitad3d9256821c197c44c6565ef2797cf361f12ec9 (patch)
tree1ff1b520ac3f3bcdbb65d09a1c618e5978d31e5d /source/blender/editors/include/ED_anim_api.h
parent8fb0b9aebbd409216dec77c4b1bf2a2fbba80698 (diff)
Fix T62636: Overlapping scrollbar in driver editor
Instead of only `ymin` and `ymax`, `ANIM_channel_draw_widgets` has a rectangle as input now. This allows the caller to set a custom width for the channel. Some space types need the extra space for the scrollbar (drivers, graph), but the other don't have a scrollbar. Reviewers: brecht Differential Revision: https://developer.blender.org/D4543
Diffstat (limited to 'source/blender/editors/include/ED_anim_api.h')
-rw-r--r--source/blender/editors/include/ED_anim_api.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_anim_api.h b/source/blender/editors/include/ED_anim_api.h
index 305e6eaa097..99b634ddfcc 100644
--- a/source/blender/editors/include/ED_anim_api.h
+++ b/source/blender/editors/include/ED_anim_api.h
@@ -548,7 +548,13 @@ void ANIM_channel_debug_print_info(bAnimListElem *ale, short indent_level);
/* Draw the given channel */
void ANIM_channel_draw(bAnimContext *ac, bAnimListElem *ale, float yminc, float ymaxc, size_t channel_index);
/* Draw the widgets for the given channel */
-void ANIM_channel_draw_widgets(const struct bContext *C, bAnimContext *ac, bAnimListElem *ale, struct uiBlock *block, float yminc, float ymaxc, size_t channel_index);
+void ANIM_channel_draw_widgets(
+ const struct bContext *C,
+ bAnimContext *ac,
+ bAnimListElem *ale,
+ struct uiBlock *block,
+ rctf *rect,
+ size_t channel_index);
/* ------------------------ Editing API -------------------------- */