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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-05-03 23:28:41 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-05-03 23:28:41 +0400
commitb1006fb949d5b437f7ab0514ee779ba24fcfc1f8 (patch)
tree9e30e514bdba81d5955691bd4722235beea2d58b /source/blender/editors/space_clip/clip_dopesheet_draw.c
parent5821c2973ec6a7cc6abc25ac75e85e84dc176411 (diff)
Clip editor: sort order for dopesheet channels
Supported sorting by name, longest tracked segment and total tracked frames. Internally tracks are stored in Tracking datablock, but sort order is a clip editor space property and sorting happens on clip editor draw. If there's no dopesheet opened with different sort orders it's not a problem due to re-sorting wouldn't happen. Also fixed draw issue of tracked segments introduced in previous commit.
Diffstat (limited to 'source/blender/editors/space_clip/clip_dopesheet_draw.c')
-rw-r--r--source/blender/editors/space_clip/clip_dopesheet_draw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_clip/clip_dopesheet_draw.c b/source/blender/editors/space_clip/clip_dopesheet_draw.c
index 1814b253def..574eb5b2570 100644
--- a/source/blender/editors/space_clip/clip_dopesheet_draw.c
+++ b/source/blender/editors/space_clip/clip_dopesheet_draw.c
@@ -203,6 +203,11 @@ void clip_draw_dopesheet_main(SpaceClip *sc, ARegion *ar, Scene *scene)
int start_frame = channel->segments[2 * i];
int end_frame = channel->segments[2 * i + 1];
+ if (sel)
+ glColor4fv(selected_strip);
+ else
+ glColor4fv(strip);
+
if (start_frame != end_frame) {
glRectf(start_frame, (float) y - STRIP_HEIGHT_HALF,
end_frame, (float) y + STRIP_HEIGHT_HALF);