diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-10-19 06:17:57 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-10-19 06:17:57 +0400 |
commit | 3c26d886b571384aa168c4ae860bed98c86aa7c5 (patch) | |
tree | 0f71b8876fbc54316a5545a09d13b9eb06a9cb07 /source/blender/editors/space_graph/space_graph.c | |
parent | e029e05646da87707667076ab95c547e3ce071a3 (diff) |
Graph Editor: Visibility toggles improved (Durian Request)
Toggling one of the visibility toggles in the Graph Editor now flushes the new value up/down the hierarchy.
- when enabling a visibility toggle, all the 'higher' up and lower down channels get their visibility turned on
- when disabling a visibility toggle, only the ones lower down get their visibility turned off (since there might still be other channels at the same level which are still enabled.
This makes showing/hiding groups of F-Curves much easier, since previously you'd have to use multiple clicks to isolate particular F-Curves. For example, to isolate only X Location curves, previously, the workflow would have been to select all AKEY, hide all VKEY, then toggle the individual X Location curves in group, then make sure the groups and objects, etc. were also visible. Now, the steps of making sure that the parents were visible too has been eliminated.
---
Also, fixed a few minor bugs with the animation-backend code for Graph Editor.
Diffstat (limited to 'source/blender/editors/space_graph/space_graph.c')
-rw-r--r-- | source/blender/editors/space_graph/space_graph.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c index c8d2c571a16..1f65a8cd7ea 100644 --- a/source/blender/editors/space_graph/space_graph.c +++ b/source/blender/editors/space_graph/space_graph.c @@ -42,6 +42,8 @@ #include "BLI_rand.h" #include "BKE_context.h" +#include "BKE_global.h" +#include "BKE_main.h" #include "BKE_fcurve.h" #include "BKE_screen.h" #include "BKE_utildefines.h" @@ -110,6 +112,7 @@ static SpaceLink *graph_new(const bContext *C) /* allocate DopeSheet data for Graph Editor */ sipo->ads= MEM_callocN(sizeof(bDopeSheet), "GraphEdit DopeSheet"); + sipo->ads->source= (ID *)scene; /* header */ ar= MEM_callocN(sizeof(ARegion), "header for graphedit"); @@ -183,8 +186,10 @@ static void graph_init(struct wmWindowManager *wm, ScrArea *sa) SpaceIpo *sipo= (SpaceIpo *)sa->spacedata.first; /* init dopesheet data if non-existant (i.e. for old files) */ - if (sipo->ads == NULL) + if (sipo->ads == NULL) { sipo->ads= MEM_callocN(sizeof(bDopeSheet), "GraphEdit DopeSheet"); + sipo->ads->source= (ID *)(G.main->scene.first); // FIXME: this is a really nasty hack here for now... + } ED_area_tag_refresh(sa); } |