diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-07-28 10:50:30 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-07-28 10:50:30 +0400 |
commit | 61178b19eabdc3e3833c167cdc8128db8994f9ca (patch) | |
tree | 3f1e666d11155d74b83fa427d6233f63dd22db24 /source/blender/editors/include | |
parent | 9cbdf73cf0ce53bdf256b1b28efbb066a71e43b9 (diff) |
2.5 - Anim Editor cleanups + Graph Editor Clutter Reduction
* Cleaned up some parts of the code that were unused/could be done a bit nicer
* Added a new option for only showing the keyframes of the selected F-Curves in the Graph Editor, as another way of reducing the clutter.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_anim_api.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/source/blender/editors/include/ED_anim_api.h b/source/blender/editors/include/ED_anim_api.h index 854b5390e8c..8f7c0ceeab6 100644 --- a/source/blender/editors/include/ED_anim_api.h +++ b/source/blender/editors/include/ED_anim_api.h @@ -30,15 +30,18 @@ #define ED_ANIM_API_H struct ID; -struct Scene; struct ListBase; +struct AnimData; + struct bContext; struct wmWindowManager; struct ScrArea; struct ARegion; struct View2D; -struct gla2DDrawInfo; + +struct Scene; struct Object; + struct bActionGroup; struct FCurve; struct FModifier; @@ -88,18 +91,19 @@ typedef enum eAnimCont_Types { typedef struct bAnimListElem { struct bAnimListElem *next, *prev; - void *data; /* source data this elem represents */ - int type; /* one of the ANIMTYPE_* values */ - int flag; /* copy of elem's flags for quick access */ - int index; /* copy of adrcode where applicable */ + void *data; /* source data this elem represents */ + int type; /* one of the ANIMTYPE_* values */ + int flag; /* copy of elem's flags for quick access */ + int index; /* copy of adrcode where applicable */ - void *key_data; /* motion data - mostly F-Curves, but can be other types too */ - short datatype; /* type of motion data to expect */ + void *key_data; /* motion data - mostly F-Curves, but can be other types too */ + short datatype; /* type of motion data to expect */ - struct ID *id; /* ID block that channel is attached to (may be used */ + struct ID *id; /* ID block that channel is attached to */ + struct AnimData *adt; /* source of the animation data attached to ID block (for convenience) */ - void *owner; /* group or channel which acts as this channel's owner */ - short ownertype; /* type of owner */ + void *owner; /* group or channel which acts as this channel's owner */ + short ownertype; /* type of owner */ } bAnimListElem; @@ -166,6 +170,7 @@ typedef enum eAnimFilter_Flags { ANIMFILTER_ACTIVE = (1<<8), /* channel should be 'active' */ ANIMFILTER_ANIMDATA = (1<<9), /* only return the underlying AnimData blocks (not the tracks, etc.) data comes from */ ANIMFILTER_NLATRACKS = (1<<10), /* only include NLA-tracks */ + ANIMFILTER_SELEDIT = (1<<11), /* link editability with selected status */ } eAnimFilter_Flags; @@ -341,9 +346,6 @@ void ipo_rainbow(int cur, int tot, float *out); /* Obtain the AnimData block providing NLA-scaling for the given channel if applicable */ struct AnimData *ANIM_nla_mapping_get(bAnimContext *ac, bAnimListElem *ale); -/* Set/clear temporary mapping of coordinates from 'local-action' time to 'global-nla-mapped' time */ -void ANIM_nla_mapping_draw(struct gla2DDrawInfo *di, struct AnimData *adt, short restore); - /* Apply/Unapply NLA mapping to all keyframes in the nominated F-Curve */ void ANIM_nla_mapping_apply_fcurve(struct AnimData *adt, struct FCurve *fcu, short restore, short only_keys); |