diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-02-12 13:41:57 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-02-12 13:41:57 +0300 |
commit | 4075c601336967f1714d8eee12e24b3b1f503978 (patch) | |
tree | 9311db72f035fe3d8a6e5b252be76234d78f2a08 /source/blender/editors/space_graph/graph_draw.c | |
parent | 517d9b882a75f177e68c83252e5b560b735b1842 (diff) |
KeyingSets: First working prototype
To use KeyingSets, simply Outliner-select items in the Datablocks view and press K to add to the active KeyingSet. Then keyframes can be inserted by choosing the 'Active Keying Set' option when inserting keyframes.
Important notes on the current implementation:
* Only properties directly inside some ID-block that is close to the root (i.e. main -> objects -> "someobj" -> location, or main -> materials -> "somemat" -> colour) can be accessed for now, as I haven't got the code for building the inner-parts of the paths working yet. Help on getting this working is welcome (hint to Brecht).
* Properties that can be safely included include simple properties "object -> Dupli Verts", entire arrays "object -> Location" or individual array elements "object -> Location -> y"
---
Also added typo fix for KeyingSet freeing. It was freeing the KeyingSet instead of it's paths.
Diffstat (limited to 'source/blender/editors/space_graph/graph_draw.c')
-rw-r--r-- | source/blender/editors/space_graph/graph_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_graph/graph_draw.c b/source/blender/editors/space_graph/graph_draw.c index 077706f0c2b..86316d93214 100644 --- a/source/blender/editors/space_graph/graph_draw.c +++ b/source/blender/editors/space_graph/graph_draw.c @@ -708,7 +708,7 @@ void graph_draw_curves (bAnimContext *ac, SpaceIpo *sipo, ARegion *ar) /* draw curve - we currently calculate colour on the fly, but that should probably be done in advance instead */ if ( ((fcu->bezt) || (fcu->fpt)) && (fcu->totvert) ) { /* set color/drawing style for curve itself */ - if (fcu->flag & FCURVE_PROTECTED) { + if ( ((fcu->grp) && (fcu->grp->flag & AGRP_PROTECTED)) || (fcu->flag & FCURVE_PROTECTED) ) { /* protected curves (non editable) are drawn with dotted lines */ setlinestyle(2); } |