diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-02-10 14:37:14 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-02-10 14:37:14 +0300 |
commit | f7a65886326a8cc17d7f7cf5b6e3988699d95329 (patch) | |
tree | 9bf3111f76528da734174218077bfc2b32a6cad9 /source/blender/editors/space_graph/graph_draw.c | |
parent | 6f2d5b8e8ac244509b5c4d4a0633d12bfb867b44 (diff) |
Graph Editor: Visibility toggles
F-Curves can now be hidden/shown in the Graph Editor in one of 3 ways:
* Specialised VKEY toggle hotkey, which alters the visibility of all selected F-Curves
* The setting toggle operators (Shift-W, Alt-W, Ctrl-Shift-W)
* Checkmark (*1) boxes in front of names of F-Curves
This allows irrelevant curves to be hidden from the keyframes area only if you want them hidden. By default, all curves are visible. Also note that a separate hotkey is used now for toggling visibility (VKEY) instead of lumping it under select-all (AKEY) as in the past, which was a major cause of confusion.
Notes:
1) I've used the ICON_BLANK011 and ICON_BLANK012 icons, which in the current icon set are two states for a checkbox type thing. These defines should probably get renamed sometime, but I'll leave that up to Matt.
Diffstat (limited to 'source/blender/editors/space_graph/graph_draw.c')
-rw-r--r-- | source/blender/editors/space_graph/graph_draw.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/source/blender/editors/space_graph/graph_draw.c b/source/blender/editors/space_graph/graph_draw.c index 1924fc0b508..7adb90e7464 100644 --- a/source/blender/editors/space_graph/graph_draw.c +++ b/source/blender/editors/space_graph/graph_draw.c @@ -986,9 +986,7 @@ void graph_draw_channel_names(bAnimContext *ac, SpaceIpo *sipo, ARegion *ar) group= (fcu->grp) ? 1 : 0; grp= fcu->grp; - - // XXX include some UI element to allow toggling of visibility - + switch (ale->ownertype) { case ANIMTYPE_NONE: /* no owner */ case ANIMTYPE_FCURVE: @@ -1005,6 +1003,13 @@ void graph_draw_channel_names(bAnimContext *ac, SpaceIpo *sipo, ARegion *ar) break; } + /* for now, 'special' (i.e. in front of name) is used to show visibility status */ + // XXX these 'blank' icons are currently checkboxes + if (fcu->flag & FCURVE_VISIBLE) + special= ICON_BLANK012; + else + special= ICON_BLANK011; + if (fcu->flag & FCURVE_MUTED) mute = ICON_MUTE_IPO_ON; else @@ -1017,9 +1022,7 @@ void graph_draw_channel_names(bAnimContext *ac, SpaceIpo *sipo, ARegion *ar) sel = SEL_FCU(fcu); - // for now, we just print the full path... this needs more work! getname_anim_fcurve(name, ale->id, fcu); - //sprintf(name, "%s[%d]", fcu->rna_path, fcu->array_index); } break; |