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:
authorJoshua Leung <aligorith@gmail.com>2007-10-03 07:48:04 +0400
committerJoshua Leung <aligorith@gmail.com>2007-10-03 07:48:04 +0400
commit5d660bba71138da32d2a73f0b3d736979588fb18 (patch)
treebdfafcdfb3ae45cbb18c75738ffad21b995ca5a6 /source/blender/src/header_time.c
parentf18c673943ee143b5bd787f14c583fd07be51560 (diff)
== TimeLine ==
Added an option to only display keyframes of the selected action-channels and/or the active material. This is should offer some speedups on really heavy datasets. Use the (View)->(Only Selected Data Keys) option to turn this on. In future, more filtering options could be added here too...
Diffstat (limited to 'source/blender/src/header_time.c')
-rw-r--r--source/blender/src/header_time.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/src/header_time.c b/source/blender/src/header_time.c
index 00ce8987d27..70dbf60b0a0 100644
--- a/source/blender/src/header_time.c
+++ b/source/blender/src/header_time.c
@@ -241,6 +241,9 @@ static void do_time_viewmenu(void *arg, int event)
if(G.v2d->flag & V2D_VIEWLOCK)
view2d_do_locks(curarea, 0);
break;
+ case 12: /* only show keyframes from selected data */
+ stime->flag ^= TIME_ONLYACTSEL;
+ break;
}
allqueue(REDRAWVIEW3D, 0);
}
@@ -265,6 +268,9 @@ static uiBlock *time_viewmenu(void *arg_unused)
else
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Show Frames|T", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 5, "");
+ uiDefIconTextBut(block, BUTM, 1, (stime->flag & TIME_ONLYACTSEL)?ICON_CHECKBOX_HLT:ICON_CHECKBOX_DEHLT,
+ "Only Selected Data Keys|", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 12, "");
+
uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Jump To Next Marker|PageUp", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 6, "");