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-04-14 17:18:48 +0300
committerJacques Lucke <mail@jlucke.com>2019-04-14 17:18:48 +0300
commit14e1a4e9cfe400e047bf1446aa1076c82c8dbcfe (patch)
tree9d5342305f136e6dda10031c90fad4a5b7eb90ab /source/blender/editors/space_action/action_draw.c
parent47adab4f993e66328bd1ad97abaf6697784ee8a0 (diff)
UI: Do not show full action range
Reviewers: brecht Differential Revision: https://developer.blender.org/D4563
Diffstat (limited to 'source/blender/editors/space_action/action_draw.c')
-rw-r--r--source/blender/editors/space_action/action_draw.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/source/blender/editors/space_action/action_draw.c b/source/blender/editors/space_action/action_draw.c
index 5cda7285b02..0db1fd6eec3 100644
--- a/source/blender/editors/space_action/action_draw.c
+++ b/source/blender/editors/space_action/action_draw.c
@@ -164,7 +164,7 @@ void draw_channel_strips(bAnimContext *ac, SpaceAction *saction, ARegion *ar)
bDopeSheet *ads = &saction->ads;
AnimData *adt = NULL;
- float act_start, act_end, y;
+ float y;
unsigned char col1[4], col2[4];
unsigned char col1a[4], col2a[4];
@@ -183,16 +183,6 @@ void draw_channel_strips(bAnimContext *ac, SpaceAction *saction, ARegion *ar)
UI_GetThemeColor4ubv(TH_DOPESHEET_CHANNELOB, col1b);
UI_GetThemeColor4ubv(TH_DOPESHEET_CHANNELSUBOB, col2b);
- /* set view-mapping rect (only used for x-axis), for NLA-scaling mapping with less calculation */
-
- /* if in NLA there's a strip active, map the view */
- if (ac->datatype == ANIMCONT_ACTION) {
- /* adt = ANIM_nla_mapping_get(ac, NULL); */ /* UNUSED */
-
- /* start and end of action itself */
- calc_action_range(ac->data, &act_start, &act_end, 0);
- }
-
/* build list of channels to draw */
int filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_LIST_VISIBLE | ANIMFILTER_LIST_CHANNELS);
size_t items = ANIM_animdata_filter(ac, &anim_data, filter, ac->data, ac->datatype);
@@ -286,9 +276,6 @@ void draw_channel_strips(bAnimContext *ac, SpaceAction *saction, ARegion *ar)
/* draw region twice: firstly backdrop, then the current range */
immRectf(pos, v2d->cur.xmin, (float)y - ACHANNEL_HEIGHT_HALF(ac), v2d->cur.xmax + EXTRA_SCROLL_PAD, (float)y + ACHANNEL_HEIGHT_HALF(ac));
-
- if (ac->datatype == ANIMCONT_ACTION)
- immRectf(pos, act_start, (float)y - ACHANNEL_HEIGHT_HALF(ac), act_end, (float)y + ACHANNEL_HEIGHT_HALF(ac));
}
else if (ac->datatype == ANIMCONT_GPENCIL) {
unsigned char *color;