|
Blender
V2.59
|
#include <string.h>#include "DNA_anim_types.h"#include "DNA_armature_types.h"#include "DNA_camera_types.h"#include "DNA_lamp_types.h"#include "DNA_lattice_types.h"#include "DNA_key_types.h"#include "DNA_material_types.h"#include "DNA_mesh_types.h"#include "DNA_meta_types.h"#include "DNA_node_types.h"#include "DNA_particle_types.h"#include "DNA_space_types.h"#include "DNA_sequence_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_world_types.h"#include "DNA_gpencil_types.h"#include "DNA_object_types.h"#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_utildefines.h"#include "BLI_ghash.h"#include "BKE_animsys.h"#include "BKE_action.h"#include "BKE_fcurve.h"#include "BKE_context.h"#include "BKE_global.h"#include "BKE_group.h"#include "BKE_key.h"#include "BKE_main.h"#include "BKE_material.h"#include "BKE_node.h"#include "BKE_sequencer.h"#include "BKE_utildefines.h"#include "ED_anim_api.h"#include "ED_markers.h"Go to the source code of this file.
Defines | |
| #define | ANIMDATA_HAS_KEYS(id) ((id)->adt && (id)->adt->action) |
| #define | ANIMDATA_HAS_DRIVERS(id) ((id)->adt && (id)->adt->drivers.first) |
| #define | ANIMDATA_HAS_NLA(id) ((id)->adt && (id)->adt->nla_tracks.first) |
| #define | ANIMDATA_FILTER_CASES(id, adtOk, nlaOk, driversOk, keysOk) |
| #define | ANIMDATA_ADD_ANIMDATA(id) |
| #define | ANIMCHANNEL_ACTIVEOK(ale) ( !(filter_mode & ANIMFILTER_ACTIVE) || !(ale->adt) || (ale->adt->flag & ADT_UI_ACTIVE) ) |
| #define | ANIMCHANNEL_SELOK(test_func) |
| #define | ANIMCHANNEL_SELEDITOK(test_func) |
Functions | |
| static Key * | actedit_get_shapekeys (bAnimContext *ac) |
| static short | actedit_get_context (bAnimContext *ac, SpaceAction *saction) |
| static short | graphedit_get_context (bAnimContext *ac, SpaceIpo *sipo) |
| static short | nlaedit_get_context (bAnimContext *ac, SpaceNla *snla) |
| short | ANIM_animdata_context_getdata (bAnimContext *ac) |
| short | ANIM_animdata_get_context (const bContext *C, bAnimContext *ac) |
| static bAnimListElem * | make_new_animlistelem (void *data, short datatype, void *owner, short ownertype, ID *owner_id) |
| static int | skip_fcurve_selected_data (bDopeSheet *ads, FCurve *fcu, ID *owner_id, int filter_mode) |
| static short | skip_fcurve_with_name (bDopeSheet *ads, FCurve *fcu, ID *owner_id) |
| static FCurve * | animdata_filter_fcurve_next (bDopeSheet *ads, FCurve *first, bActionGroup *grp, int filter_mode, ID *owner_id) |
| static int | animdata_filter_fcurves (ListBase *anim_data, bDopeSheet *ads, FCurve *first, bActionGroup *grp, void *owner, short ownertype, int filter_mode, ID *owner_id) |
| static int | animdata_filter_action (bAnimContext *ac, ListBase *anim_data, bDopeSheet *ads, bAction *act, int filter_mode, void *owner, short ownertype, ID *owner_id) |
| static int | animdata_filter_nla (bAnimContext *UNUSED(ac), ListBase *anim_data, bDopeSheet *UNUSED(ads), AnimData *adt, int filter_mode, void *owner, short ownertype, ID *owner_id) |
| static int | animdata_filter_shapekey (bAnimContext *ac, ListBase *anim_data, Key *key, int filter_mode) |
| static int | animdata_filter_gpencil (ListBase *anim_data, void *UNUSED(data), int filter_mode) |
| static int | animdata_filter_dopesheet_texs (bAnimContext *ac, ListBase *anim_data, bDopeSheet *ads, ID *owner_id, int filter_mode) |
| static int | animdata_filter_dopesheet_mats (bAnimContext *ac, ListBase *anim_data, bDopeSheet *ads, Base *base, int filter_mode) |
| static int | animdata_filter_dopesheet_particles (bAnimContext *ac, ListBase *anim_data, bDopeSheet *ads, Base *base, int filter_mode) |
| static int | animdata_filter_dopesheet_obdata (bAnimContext *ac, ListBase *anim_data, bDopeSheet *ads, Base *base, int filter_mode) |
| static int | animdata_filter_dopesheet_ob (bAnimContext *ac, ListBase *anim_data, bDopeSheet *ads, Base *base, int filter_mode) |
| static int | animdata_filter_dopesheet_scene (bAnimContext *ac, ListBase *anim_data, bDopeSheet *ads, Scene *sce, int filter_mode) |
| static int | animdata_filter_dopesheet (bAnimContext *ac, ListBase *anim_data, bDopeSheet *ads, int filter_mode) |
| static short | animdata_filter_dopesheet_summary (bAnimContext *ac, ListBase *anim_data, int filter_mode, int *items) |
| static int | animdata_filter_remove_invalid (ListBase *anim_data) |
| static int | animdata_filter_remove_duplis (ListBase *anim_data) |
| int | ANIM_animdata_filter (bAnimContext *ac, ListBase *anim_data, int filter_mode, void *data, short datatype) |
Definition in file anim_filter.c.
| #define ANIMCHANNEL_ACTIVEOK | ( | ale | ) | ( !(filter_mode & ANIMFILTER_ACTIVE) || !(ale->adt) || (ale->adt->flag & ADT_UI_ACTIVE) ) |
Definition at line 408 of file anim_filter.c.
Referenced by animdata_filter_dopesheet_mats(), animdata_filter_dopesheet_ob(), animdata_filter_dopesheet_obdata(), animdata_filter_dopesheet_particles(), and animdata_filter_dopesheet_texs().
| #define ANIMCHANNEL_SELEDITOK | ( | test_func | ) |
( !(filter_mode & ANIMFILTER_SELEDIT) || \ !(filter_mode & ANIMFILTER_FOREDIT) || \ (test_func) )
Definition at line 425 of file anim_filter.c.
Referenced by animdata_filter_fcurve_next().
| #define ANIMCHANNEL_SELOK | ( | test_func | ) |
( !(filter_mode & (ANIMFILTER_SEL|ANIMFILTER_UNSEL)) || \ ((filter_mode & ANIMFILTER_SEL) && test_func) || \ ((filter_mode & ANIMFILTER_UNSEL) && test_func==0) )
Definition at line 412 of file anim_filter.c.
Referenced by animdata_filter_action(), animdata_filter_dopesheet_ob(), animdata_filter_dopesheet_scene(), animdata_filter_fcurve_next(), animdata_filter_gpencil(), animdata_filter_nla(), and animdata_filter_shapekey().
| #define ANIMDATA_ADD_ANIMDATA | ( | id | ) |
{\
ale= make_new_animlistelem((id)->adt, ANIMTYPE_ANIMDATA, NULL, ANIMTYPE_NONE, (ID *)id);\
if (ale) {\
BLI_addtail(anim_data, ale);\
items++;\
}\
}
Definition at line 398 of file anim_filter.c.
Referenced by animdata_filter_dopesheet(), and animdata_filter_shapekey().
| #define ANIMDATA_FILTER_CASES | ( | id, | |
| adtOk, | |||
| nlaOk, | |||
| driversOk, | |||
| keysOk | |||
| ) |
{\
if ((id)->adt) {\
if (!(filter_mode & ANIMFILTER_CURVEVISIBLE) || !((id)->adt->flag & ADT_CURVES_NOT_VISIBLE)) {\
if (filter_mode & ANIMFILTER_ANIMDATA) {\
adtOk\
}\
else if (ads->filterflag & ADS_FILTER_ONLYNLA) {\
if (ANIMDATA_HAS_NLA(id)) {\
nlaOk\
}\
else if (!(ads->filterflag & ADS_FILTER_NLA_NOACT) && ANIMDATA_HAS_KEYS(id)) {\
nlaOk\
}\
}\
else if (ads->filterflag & ADS_FILTER_ONLYDRIVERS) {\
if (ANIMDATA_HAS_DRIVERS(id)) {\
driversOk\
}\
}\
else {\
if (ANIMDATA_HAS_KEYS(id)) {\
keysOk\
}\
}\
}\
}\
}
Definition at line 367 of file anim_filter.c.
Referenced by animdata_filter_dopesheet(), animdata_filter_dopesheet_mats(), animdata_filter_dopesheet_ob(), animdata_filter_dopesheet_obdata(), animdata_filter_dopesheet_particles(), animdata_filter_dopesheet_scene(), and animdata_filter_dopesheet_texs().
| #define ANIMDATA_HAS_DRIVERS | ( | id | ) | ((id)->adt && (id)->adt->drivers.first) |
Definition at line 334 of file anim_filter.c.
| #define ANIMDATA_HAS_KEYS | ( | id | ) | ((id)->adt && (id)->adt->action) |
Definition at line 331 of file anim_filter.c.
| #define ANIMDATA_HAS_NLA | ( | id | ) | ((id)->adt && (id)->adt->nla_tracks.first) |
Definition at line 337 of file anim_filter.c.
| static short actedit_get_context | ( | bAnimContext * | ac, |
| SpaceAction * | saction | ||
| ) | [static] |
Definition at line 128 of file anim_filter.c.
References actedit_get_shapekeys(), SpaceAction::action, AnimData::action, SpaceAction::ads, Object::adt, ANIMCONT_ACTION, ANIMCONT_DOPESHEET, ANIMCONT_GPENCIL, ANIMCONT_NONE, ANIMCONT_SHAPEKEY, bAnimContext::data, bAnimContext::datatype, bAnimContext::mode, SpaceAction::mode, NULL, bAnimContext::obact, SACTCONT_ACTION, SACTCONT_DOPESHEET, SACTCONT_GPENCIL, SACTCONT_SHAPEKEY, bAnimContext::scene, and bDopeSheet::source.
Referenced by ANIM_animdata_context_getdata().
| static Key* actedit_get_shapekeys | ( | bAnimContext * | ac | ) | [static] |
Definition at line 103 of file anim_filter.c.
References KEY_RELATIVE, NULL, ob_get_key(), OBACT, bAnimContext::scene, and Key::type.
Referenced by actedit_get_context().
| short ANIM_animdata_context_getdata | ( | bAnimContext * | ac | ) |
Definition at line 259 of file anim_filter.c.
References actedit_get_context(), bAnimContext::data, ListBase::first, graphedit_get_context(), nlaedit_get_context(), bAnimContext::sa, SPACE_ACTION, SPACE_IPO, SPACE_NLA, ScrArea::spacedata, and ScrArea::spacetype.
Referenced by ANIM_animdata_get_context(), and recalcData().
| int ANIM_animdata_filter | ( | bAnimContext * | ac, |
| ListBase * | anim_data, | ||
| int | filter_mode, | ||
| void * | data, | ||
| short | datatype | ||
| ) |
Definition at line 2599 of file anim_filter.c.
References SpaceAction::ads, ANIMCONT_ACTION, ANIMCONT_DOPESHEET, ANIMCONT_DRIVERS, ANIMCONT_FCURVES, ANIMCONT_GPENCIL, ANIMCONT_NLA, ANIMCONT_SHAPEKEY, animdata_filter_action(), animdata_filter_dopesheet(), animdata_filter_dopesheet_summary(), animdata_filter_gpencil(), animdata_filter_remove_duplis(), animdata_filter_remove_invalid(), animdata_filter_shapekey(), ANIMFILTER_NODUPLIS, ANIMTYPE_NONE, ListBase::first, NULL, bAnimContext::obact, bAnimContext::sa, and ScrArea::spacedata.
Referenced by achannel_setting_flush_widget_cb(), actkeys_framejump_exec(), actkeys_mselect_column(), actkeys_select_leftright(), actkeys_select_linked_exec(), ANIM_deselect_anim_channels(), ANIM_editkeyframes_refresh(), ANIM_set_active_channel(), ANIM_sync_animchannels_to_data(), animchannels_delete_exec(), animchannels_enable_exec(), animchannels_rearrange_exec(), animchannels_visibility_set_exec(), animchannels_visibility_toggle_exec(), bake_graph_curves(), borderselect_action(), borderselect_anim_channels(), borderselect_graphkeys(), borderselect_nla_strips(), clean_action_keys(), clean_graph_keys(), columnselect_action_keys(), columnselect_graph_keys(), copy_action_keys(), copy_graph_keys(), createTransActionData(), createTransNlaData(), delete_action_keys(), delete_graph_keys(), deselect_action_keys(), deselect_nla_strips(), draw_channel_names(), draw_channel_strips(), draw_nla_channel_list(), draw_nla_main_data(), duplicate_action_keys(), duplicate_graph_keys(), ED_nla_postop_refresh(), get_active_fcurve_channel(), get_graph_keyframe_extents(), get_keyframe_extents(), get_nearest_fcurve_verts_list(), graph_draw_channel_names(), graph_draw_curves(), graph_fmodifier_add_exec(), graph_fmodifier_paste_exec(), graph_refresh(), graphkeys_euler_filter_exec(), graphkeys_framejump_exec(), graphkeys_mselect_column(), graphkeys_select_leftright(), graphkeys_select_linked_exec(), graphkeys_smooth_exec(), graphop_editable_keyframes_poll(), graphop_selected_fcurve_poll(), graphop_visible_keyframes_poll(), insert_action_keys(), insert_graph_keys(), markers_selectkeys_between(), mirror_action_keys(), mirror_graph_keys(), mouse_action_keys(), mouse_anim_channels(), mouse_nla_channels(), mouse_nla_strips(), nla_fmodifier_add_exec(), nla_fmodifier_copy_exec(), nla_fmodifier_paste_exec(), nla_panel_context(), nlaedit_add_actionclip_exec(), nlaedit_add_meta_exec(), nlaedit_add_tracks_exec(), nlaedit_add_transition_exec(), nlaedit_apply_scale_exec(), nlaedit_bake_exec(), nlaedit_clear_scale_exec(), nlaedit_delete_exec(), nlaedit_delete_tracks_exec(), nlaedit_disable_tweakmode_exec(), nlaedit_duplicate_exec(), nlaedit_enable_tweakmode_exec(), nlaedit_move_down_exec(), nlaedit_move_up_exec(), nlaedit_remove_meta_exec(), nlaedit_select_leftright(), nlaedit_snap_exec(), nlaedit_split_exec(), nlaedit_swap_exec(), nlaedit_sync_actlen_exec(), nlaedit_toggle_mute_exec(), paste_action_keys(), paste_graph_keys(), posttrans_action_clean(), recalcData(), sample_action_keys(), sample_graph_keys(), select_moreless_action_keys(), select_moreless_graph_keys(), setexpo_action_keys(), setexpo_graph_keys(), setflag_anim_channels(), sethandles_action_keys(), sethandles_graph_keys(), setipo_action_keys(), setipo_graph_keys(), setkeytype_action_keys(), snap_action_keys(), snap_graph_keys(), special_aftertrans_update(), summary_keyframes_loop(), and summary_to_keylist().
| short ANIM_animdata_get_context | ( | const bContext * | C, |
| bAnimContext * | ac | ||
| ) |
Definition at line 302 of file anim_filter.c.
References ANIM_animdata_context_getdata(), bAnimContext::ar, Scene::basact, CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), ED_context_get_markers(), bAnimContext::markers, NULL, bAnimContext::obact, Base::object, bAnimContext::regiontype, ARegion::regiontype, bAnimContext::sa, bAnimContext::scene, bAnimContext::spacetype, and ScrArea::spacetype.
Referenced by achannel_setting_flush_widget_cb(), action_channel_area_draw(), action_main_area_draw(), actkeys_borderselect_exec(), actkeys_clean_exec(), actkeys_clickselect_invoke(), actkeys_columnselect_exec(), actkeys_copy_exec(), actkeys_delete_exec(), actkeys_deselectall_exec(), actkeys_duplicate_exec(), actkeys_expo_exec(), actkeys_framejump_exec(), actkeys_handletype_exec(), actkeys_insertkey_exec(), actkeys_ipo_exec(), actkeys_keytype_exec(), actkeys_mirror_exec(), actkeys_paste_exec(), actkeys_previewrange_exec(), actkeys_sample_exec(), actkeys_select_leftright_exec(), actkeys_select_leftright_invoke(), actkeys_select_less_exec(), actkeys_select_linked_exec(), actkeys_select_more_exec(), actkeys_snap_exec(), actkeys_viewall(), ANIM_sync_animchannels_to_data(), animchannels_borderselect_exec(), animchannels_collapse_exec(), animchannels_delete_exec(), animchannels_deselectall_exec(), animchannels_enable_exec(), animchannels_expand_exec(), animchannels_mouseclick_invoke(), animchannels_rearrange_exec(), animchannels_setflag_exec(), animchannels_visibility_set_exec(), animchannels_visibility_toggle_exec(), createTransActionData(), createTransNlaData(), graph_channel_area_draw(), graph_fmodifier_add_exec(), graph_fmodifier_copy_exec(), graph_fmodifier_paste_exec(), graph_main_area_draw(), graph_panel_context(), graph_refresh(), graphkeys_bake_exec(), graphkeys_borderselect_exec(), graphkeys_clean_exec(), graphkeys_clear_ghostcurves_exec(), graphkeys_click_insert_exec(), graphkeys_click_insert_invoke(), graphkeys_clickselect_invoke(), graphkeys_columnselect_exec(), graphkeys_copy_exec(), graphkeys_create_ghostcurves_exec(), graphkeys_delete_exec(), graphkeys_deselectall_exec(), graphkeys_duplicate_exec(), graphkeys_euler_filter_exec(), graphkeys_expo_exec(), graphkeys_framejump_exec(), graphkeys_handletype_exec(), graphkeys_insertkey_exec(), graphkeys_ipo_exec(), graphkeys_mirror_exec(), graphkeys_paste_exec(), graphkeys_previewrange_exec(), graphkeys_sample_exec(), graphkeys_select_leftright_exec(), graphkeys_select_leftright_invoke(), graphkeys_select_less_exec(), graphkeys_select_linked_exec(), graphkeys_select_more_exec(), graphkeys_smooth_exec(), graphkeys_snap_exec(), graphkeys_sound_bake_invoke(), graphkeys_viewall(), graphop_active_fcurve_poll(), graphop_editable_keyframes_poll(), graphop_selected_fcurve_poll(), graphop_visible_keyframes_poll(), nla_channel_area_draw(), nla_fmodifier_add_exec(), nla_fmodifier_copy_exec(), nla_fmodifier_paste_exec(), nla_main_area_draw(), nla_panel_context(), nlachannels_mouseclick_invoke(), nlaedit_add_actionclip_exec(), nlaedit_add_meta_exec(), nlaedit_add_tracks_exec(), nlaedit_add_transition_exec(), nlaedit_apply_scale_exec(), nlaedit_bake_exec(), nlaedit_borderselect_exec(), nlaedit_clear_scale_exec(), nlaedit_clickselect_invoke(), nlaedit_delete_exec(), nlaedit_delete_tracks_exec(), nlaedit_deselectall_exec(), nlaedit_disable_tweakmode_exec(), nlaedit_duplicate_exec(), nlaedit_enable_tweakmode_exec(), nlaedit_move_down_exec(), nlaedit_move_up_exec(), nlaedit_remove_meta_exec(), nlaedit_select_leftright_exec(), nlaedit_select_leftright_invoke(), nlaedit_snap_exec(), nlaedit_split_exec(), nlaedit_swap_exec(), nlaedit_sync_actlen_exec(), nlaedit_toggle_mute_exec(), and special_aftertrans_update().
| static int animdata_filter_action | ( | bAnimContext * | ac, |
| ListBase * | anim_data, | ||
| bDopeSheet * | ads, | ||
| bAction * | act, | ||
| int | filter_mode, | ||
| void * | owner, | ||
| short | ownertype, | ||
| ID * | owner_id | ||
| ) | [static] |
Definition at line 988 of file anim_filter.c.
References AGRP_ACTIVE, AGRP_NOTVISIBLE, ANIMCHANNEL_SELOK, animdata_filter_fcurve_next(), animdata_filter_fcurves(), ANIMFILTER_ACTGROUPED, ANIMFILTER_CHANNELS, ANIMFILTER_CURVESONLY, ANIMFILTER_CURVEVISIBLE, ANIMFILTER_FOREDIT, ANIMFILTER_SEL, ANIMFILTER_UNSEL, ANIMFILTER_VISIBLE, ANIMTYPE_GROUP, ANIMTYPE_NONE, BLI_addtail(), bActionGroup::channels, bAction::curves, EDITABLE_AGRP, EXPANDED_AGRP, ListBase::first, bActionGroup::flag, bAction::groups, bAction::id, ListBase::last, ID::lib, make_new_animlistelem(), FCurve::next, bActionGroup::next, NULL, and SEL_AGRP.
Referenced by ANIM_animdata_filter(), animdata_filter_dopesheet_mats(), animdata_filter_dopesheet_ob(), animdata_filter_dopesheet_obdata(), animdata_filter_dopesheet_particles(), animdata_filter_dopesheet_scene(), animdata_filter_dopesheet_texs(), and animdata_filter_shapekey().
| static int animdata_filter_dopesheet | ( | bAnimContext * | ac, |
| ListBase * | anim_data, | ||
| bDopeSheet * | ads, | ||
| int | filter_mode | ||
| ) | [static] |
Definition at line 2093 of file anim_filter.c.
References ADS_FILTER_INCL_HIDDEN, ADS_FILTER_NOARM, ADS_FILTER_NOCAM, ADS_FILTER_NOCUR, ADS_FILTER_NOLAM, ADS_FILTER_NOLAT, ADS_FILTER_NOMAT, ADS_FILTER_NOMBA, ADS_FILTER_NOMESH, ADS_FILTER_NONTREE, ADS_FILTER_NOOBJ, ADS_FILTER_NOPART, ADS_FILTER_NOSCE, ADS_FILTER_NOSHAPEKEYS, ADS_FILTER_NOTEX, ADS_FILTER_NOWOR, ADS_FILTER_ONLYOBGROUP, ADS_FILTER_ONLYSEL, ADS_FILTER_SELEDIT, Object::adt, Scene::adt, ADT_CURVES_NOT_VISIBLE, ANIMDATA_ADD_ANIMDATA, ANIMDATA_FILTER_CASES, animdata_filter_dopesheet_ob(), animdata_filter_dopesheet_scene(), ANIMFILTER_CURVEVISIBLE, ANIMFILTER_SELEDIT, Scene::base, Object::data, ELEM5, Global::f, bDopeSheet::filter_grp, bDopeSheet::filterflag, ListBase::first, Base::flag, AnimData::flag, G, G_DEBUG, give_current_material(), GS, ID_SCE, if(), Base::lay, Object::lay, Scene::lay, MAX_MTEX, Material::mtex, ID::name, Base::next, ParticleSystem::next, Scene::nodetree, NULL, OB_ARMATURE, OB_CAMERA, OB_CURVE, OB_FONT, ob_get_key(), OB_LAMP, OB_LATTICE, OB_MBALL, OB_MESH, OB_RESTRICT_VIEW, OB_SURF, Base::object, object_in_group(), ParticleSystem::part, Object::particlesystem, Object::restrictflag, SELECT, bDopeSheet::source, MTex::tex, Object::totcol, Object::type, and Scene::world.
Referenced by ANIM_animdata_filter().
| static int animdata_filter_dopesheet_mats | ( | bAnimContext * | ac, |
| ListBase * | anim_data, | ||
| bDopeSheet * | ads, | ||
| Base * | base, | ||
| int | filter_mode | ||
| ) | [static] |
Definition at line 1413 of file anim_filter.c.
References ADS_FILTER_NOTEX, Material::adt, ANIMCHANNEL_ACTIVEOK, animdata_filter_action(), ANIMDATA_FILTER_CASES, animdata_filter_dopesheet_texs(), animdata_filter_fcurves(), animdata_filter_nla(), ANIMTYPE_DSMAT, ANIMTYPE_FILLMATD, ANIMTYPE_OBJECT, BLI_addtail(), BLI_freelistN(), LinkData::data, FILTER_MAT_OBJC, FILTER_MAT_OBJD, bDopeSheet::filterflag, ListBase::first, give_current_material(), if(), make_new_animlistelem(), MAX_MTEX, MEM_callocN(), Material::mtex, LinkData::next, NULL, Base::object, MTex::tex, and Object::totcol.
Referenced by animdata_filter_dopesheet_ob().
| static int animdata_filter_dopesheet_ob | ( | bAnimContext * | ac, |
| ListBase * | anim_data, | ||
| bDopeSheet * | ads, | ||
| Base * | base, | ||
| int | filter_mode | ||
| ) | [static] |
Definition at line 1682 of file anim_filter.c.
References AnimData::action, ADS_FILTER_NOARM, ADS_FILTER_NOCAM, ADS_FILTER_NOCUR, ADS_FILTER_NOLAM, ADS_FILTER_NOLAT, ADS_FILTER_NOMAT, ADS_FILTER_NOMBA, ADS_FILTER_NOMESH, ADS_FILTER_NOOBJ, ADS_FILTER_NOPART, ADS_FILTER_NOSHAPEKEYS, Key::adt, Object::adt, ANIMCHANNEL_ACTIVEOK, ANIMCHANNEL_SELOK, animdata_filter_action(), ANIMDATA_FILTER_CASES, animdata_filter_dopesheet_mats(), animdata_filter_dopesheet_obdata(), animdata_filter_dopesheet_particles(), animdata_filter_fcurves(), animdata_filter_nla(), ANIMFILTER_NLATRACKS, ANIMTYPE_DSSKEY, ANIMTYPE_FILLACTD, ANIMTYPE_FILLDRIVERS, ANIMTYPE_NONE, ANIMTYPE_OBJECT, BLI_addtail(), Object::data, AnimData::drivers, EXPANDED_ACTC, EXPANDED_DRVD, EXPANDED_OBJC, FILTER_SKE_OBJD, bDopeSheet::filterflag, ListBase::first, Base::flag, if(), make_new_animlistelem(), NULL, OB_ARMATURE, OB_CAMERA, OB_CURVE, OB_FONT, ob_get_key(), OB_LAMP, OB_LATTICE, OB_MBALL, OB_MESH, OB_SURF, Base::object, Object::particlesystem, SELECT, Object::totcol, and Object::type.
Referenced by animdata_filter_dopesheet().
| static int animdata_filter_dopesheet_obdata | ( | bAnimContext * | ac, |
| ListBase * | anim_data, | ||
| bDopeSheet * | ads, | ||
| Base * | base, | ||
| int | filter_mode | ||
| ) | [static] |
Definition at line 1577 of file anim_filter.c.
References ADS_FILTER_NOTEX, IdAdtTemplate::adt, ANIMCHANNEL_ACTIVEOK, animdata_filter_action(), ANIMDATA_FILTER_CASES, animdata_filter_dopesheet_texs(), animdata_filter_fcurves(), animdata_filter_nla(), ANIMTYPE_DSARM, ANIMTYPE_DSCAM, ANIMTYPE_DSCUR, ANIMTYPE_DSLAM, ANIMTYPE_DSLAT, ANIMTYPE_DSMBALL, ANIMTYPE_DSMESH, ANIMTYPE_OBJECT, BLI_addtail(), Object::data, AnimData::drivers, FILTER_ARM_OBJD, FILTER_CAM_OBJD, FILTER_CUR_OBJD, FILTER_LAM_OBJD, FILTER_LATTICE_OBJD, FILTER_MBALL_OBJD, FILTER_MESH_OBJD, bDopeSheet::filterflag, ListBase::first, make_new_animlistelem(), NULL, OB_ARMATURE, OB_CAMERA, OB_CURVE, OB_FONT, OB_LAMP, OB_LATTICE, OB_MBALL, OB_MESH, OB_SURF, Base::object, and Object::type.
Referenced by animdata_filter_dopesheet_ob().
| static int animdata_filter_dopesheet_particles | ( | bAnimContext * | ac, |
| ListBase * | anim_data, | ||
| bDopeSheet * | ads, | ||
| Base * | base, | ||
| int | filter_mode | ||
| ) | [static] |
Definition at line 1520 of file anim_filter.c.
References AnimData::action, ParticleSettings::adt, ANIMCHANNEL_ACTIVEOK, animdata_filter_action(), ANIMDATA_FILTER_CASES, animdata_filter_fcurves(), animdata_filter_nla(), ANIMTYPE_DSPART, ANIMTYPE_FILLPARTD, ANIMTYPE_OBJECT, BLI_addtail(), AnimData::drivers, ELEM, FILTER_PART_OBJC, FILTER_PART_OBJD, ListBase::first, make_new_animlistelem(), ParticleSystem::next, NULL, Base::object, ParticleSystem::part, and Object::particlesystem.
Referenced by animdata_filter_dopesheet_ob().
| static int animdata_filter_dopesheet_scene | ( | bAnimContext * | ac, |
| ListBase * | anim_data, | ||
| bDopeSheet * | ads, | ||
| Scene * | sce, | ||
| int | filter_mode | ||
| ) | [static] |
Definition at line 1925 of file anim_filter.c.
References AnimData::action, ADS_FILTER_NONTREE, ADS_FILTER_NOSCE, ADS_FILTER_NOTEX, ADS_FILTER_NOWOR, World::adt, bNodeTree::adt, Scene::adt, ANIMCHANNEL_SELOK, animdata_filter_action(), ANIMDATA_FILTER_CASES, animdata_filter_dopesheet_texs(), animdata_filter_fcurves(), animdata_filter_nla(), ANIMFILTER_CURVESONLY, ANIMFILTER_NLATRACKS, ANIMTYPE_DSNTREE, ANIMTYPE_DSWOR, ANIMTYPE_FILLACTD, ANIMTYPE_FILLDRIVERS, ANIMTYPE_NONE, ANIMTYPE_SCENE, BLI_addtail(), AnimData::drivers, EXPANDED_ACTC, EXPANDED_DRVD, EXPANDED_SCEC, FILTER_NTREE_SCED, FILTER_WOR_SCED, bDopeSheet::filterflag, ListBase::first, Scene::flag, make_new_animlistelem(), Scene::nodetree, NULL, SCE_DS_SELECTED, and Scene::world.
Referenced by animdata_filter_dopesheet().
| static short animdata_filter_dopesheet_summary | ( | bAnimContext * | ac, |
| ListBase * | anim_data, | ||
| int | filter_mode, | ||
| int * | items | ||
| ) | [static] |
Definition at line 2490 of file anim_filter.c.
References SpaceAction::ads, ADS_FILTER_SUMMARY, ADS_FLAG_SUMMARY_COLLAPSED, ANIMTYPE_NONE, ANIMTYPE_SUMMARY, BLI_addtail(), bDopeSheet::filterflag, ListBase::first, bDopeSheet::flag, make_new_animlistelem(), NULL, bAnimContext::sa, SPACE_ACTION, ScrArea::spacedata, and ScrArea::spacetype.
Referenced by ANIM_animdata_filter().
| static int animdata_filter_dopesheet_texs | ( | bAnimContext * | ac, |
| ListBase * | anim_data, | ||
| bDopeSheet * | ads, | ||
| ID * | owner_id, | ||
| int | filter_mode | ||
| ) | [static] |
Definition at line 1286 of file anim_filter.c.
References Tex::adt, ANIMCHANNEL_ACTIVEOK, animdata_filter_action(), ANIMDATA_FILTER_CASES, animdata_filter_fcurves(), animdata_filter_nla(), ANIMFILTER_CHANNELS, ANIMFILTER_CURVESONLY, ANIMFILTER_VISIBLE, ANIMTYPE_DSLAM, ANIMTYPE_DSMAT, ANIMTYPE_DSTEX, ANIMTYPE_DSWOR, ANIMTYPE_FILLTEXD, ANIMTYPE_NONE, BLI_addtail(), BLI_freelistN(), LinkData::data, ELEM, Global::f, FILTER_TEX_DATA, FILTER_TEX_LAMC, FILTER_TEX_MATC, FILTER_TEX_WORC, ListBase::first, G, G_DEBUG, GS, ID_LA, ID_MA, ID_WO, if(), make_new_animlistelem(), MAX_MTEX, MEM_callocN(), Lamp::mtex, World::mtex, Material::mtex, ID::name, LinkData::next, and NULL.
Referenced by animdata_filter_dopesheet_mats(), animdata_filter_dopesheet_obdata(), and animdata_filter_dopesheet_scene().
| static FCurve* animdata_filter_fcurve_next | ( | bDopeSheet * | ads, |
| FCurve * | first, | ||
| bActionGroup * | grp, | ||
| int | filter_mode, | ||
| ID * | owner_id | ||
| ) | [static] |
Definition at line 913 of file anim_filter.c.
References ADS_FILTER_BY_FCU_NAME, ADS_FILTER_ONLYSEL, ANIMCHANNEL_SELEDITOK, ANIMCHANNEL_SELOK, ANIMFILTER_ACTIVE, ANIMFILTER_CURVEVISIBLE, ANIMFILTER_FOREDIT, EDITABLE_FCU, FCURVE_ACTIVE, FCURVE_VISIBLE, bDopeSheet::filterflag, FCurve::flag, FCurve::grp, FCurve::next, NULL, SEL_FCU, skip_fcurve_selected_data(), and skip_fcurve_with_name().
Referenced by animdata_filter_action(), and animdata_filter_fcurves().
| static int animdata_filter_fcurves | ( | ListBase * | anim_data, |
| bDopeSheet * | ads, | ||
| FCurve * | first, | ||
| bActionGroup * | grp, | ||
| void * | owner, | ||
| short | ownertype, | ||
| int | filter_mode, | ||
| ID * | owner_id | ||
| ) | [static] |
Definition at line 960 of file anim_filter.c.
References animdata_filter_fcurve_next(), ANIMTYPE_FCURVE, BLI_addtail(), make_new_animlistelem(), and FCurve::next.
Referenced by animdata_filter_action(), animdata_filter_dopesheet_mats(), animdata_filter_dopesheet_ob(), animdata_filter_dopesheet_obdata(), animdata_filter_dopesheet_particles(), animdata_filter_dopesheet_scene(), and animdata_filter_dopesheet_texs().
| static int animdata_filter_gpencil | ( | ListBase * | anim_data, |
| void * | UNUSEDdata, | ||
| int | filter_mode | ||
| ) | [static] |
Definition at line 1234 of file anim_filter.c.
References ANIMCHANNEL_SELOK, ANIMFILTER_ACTGROUPED, ANIMFILTER_CHANNELS, ANIMFILTER_CURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_VISIBLE, ANIMTYPE_GPDATABLOCK, ANIMTYPE_GPLAYER, ANIMTYPE_NONE, BLI_addtail(), EDITABLE_GPL, EXPANDED_GPD, ListBase::first, G, Main::gpencil, bGPdata::id, ID_REAL_USERS, bGPdata::layers, Global::main, make_new_animlistelem(), bGPDlayer::next, ID::next, NULL, and SEL_GPL.
Referenced by ANIM_animdata_filter().
| static int animdata_filter_nla | ( | bAnimContext * | UNUSEDac, |
| ListBase * | anim_data, | ||
| bDopeSheet * | UNUSEDads, | ||
| AnimData * | adt, | ||
| int | filter_mode, | ||
| void * | owner, | ||
| short | ownertype, | ||
| ID * | owner_id | ||
| ) | [static] |
Definition at line 1115 of file anim_filter.c.
References AnimData::action, ADT_NLA_EDIT_ON, ANIMCHANNEL_SELOK, ANIMFILTER_ACTIVE, ANIMFILTER_CHANNELS, ANIMFILTER_FOREDIT, ANIMTYPE_NLAACTION, ANIMTYPE_NLATRACK, BLI_addtail(), bAnimListElem::data, EDITABLE_NLT, ListBase::first, NlaTrack::flag, AnimData::flag, if(), ListBase::last, make_new_animlistelem(), next, NlaTrack::next, AnimData::nla_tracks, NLATRACK_ACTIVE, NLATRACK_DISABLED, NULL, NlaTrack::prev, and SEL_NLT.
Referenced by animdata_filter_dopesheet_mats(), animdata_filter_dopesheet_ob(), animdata_filter_dopesheet_obdata(), animdata_filter_dopesheet_particles(), animdata_filter_dopesheet_scene(), and animdata_filter_dopesheet_texs().
| static int animdata_filter_remove_duplis | ( | ListBase * | anim_data | ) | [static] |
Definition at line 2553 of file anim_filter.c.
References BLI_freelinkN(), BLI_ghash_free(), BLI_ghash_haskey(), BLI_ghash_insert(), BLI_ghash_new(), BLI_ghashutil_ptrcmp(), BLI_ghashutil_ptrhash(), bAnimListElem::data, ListBase::first, bAnimListElem::next, next, and NULL.
Referenced by ANIM_animdata_filter().
| static int animdata_filter_remove_invalid | ( | ListBase * | anim_data | ) | [static] |
Definition at line 2534 of file anim_filter.c.
References ANIMTYPE_NONE, BLI_freelinkN(), ListBase::first, bAnimListElem::next, next, and bAnimListElem::type.
Referenced by ANIM_animdata_filter().
| static int animdata_filter_shapekey | ( | bAnimContext * | ac, |
| ListBase * | anim_data, | ||
| Key * | key, | ||
| int | filter_mode | ||
| ) | [static] |
Definition at line 1185 of file anim_filter.c.
References AnimData::action, Key::adt, ANIMCHANNEL_SELOK, ANIMDATA_ADD_ANIMDATA, animdata_filter_action(), ANIMFILTER_ANIMDATA, ANIMFILTER_CURVESONLY, ANIMFILTER_FOREDIT, ANIMTYPE_NONE, ANIMTYPE_SHAPEKEY, BLI_addtail(), Key::block, EDITABLE_SHAPEKEY, ListBase::first, make_new_animlistelem(), KeyBlock::next, NULL, and SEL_SHAPEKEY.
Referenced by ANIM_animdata_filter().
| static short graphedit_get_context | ( | bAnimContext * | ac, |
| SpaceIpo * | sipo | ||
| ) | [static] |
Definition at line 186 of file anim_filter.c.
References SpaceIpo::ads, ADS_FILTER_ONLYDRIVERS, ADS_FILTER_SELEDIT, ANIMCONT_DRIVERS, ANIMCONT_FCURVES, ANIMCONT_NONE, bAnimContext::data, bAnimContext::datatype, bDopeSheet::filterflag, SpaceIpo::flag, MEM_callocN(), bAnimContext::mode, SpaceIpo::mode, NULL, bAnimContext::scene, SIPO_MODE_ANIMATION, SIPO_MODE_DRIVERS, SIPO_SELCUVERTSONLY, and bDopeSheet::source.
Referenced by ANIM_animdata_context_getdata().
| static bAnimListElem* make_new_animlistelem | ( | void * | data, |
| short | datatype, | ||
| void * | owner, | ||
| short | ownertype, | ||
| ID * | owner_id | ||
| ) | [static] |
Definition at line 435 of file anim_filter.c.
References AnimData::action, Camera::adt, Lamp::adt, World::adt, Lattice::adt, Mesh::adt, Key::adt, Material::adt, bArmature::adt, bAnimListElem::adt, ParticleSettings::adt, Curve::adt, bNodeTree::adt, Tex::adt, ALE_ACT, ALE_ALL, ALE_FCURVE, ALE_GPFRAME, ALE_GROUP, ALE_NLASTRIP, ALE_NONE, ALE_OB, ALE_SCE, ANIMTYPE_DSARM, ANIMTYPE_DSCAM, ANIMTYPE_DSCUR, ANIMTYPE_DSLAM, ANIMTYPE_DSLAT, ANIMTYPE_DSMAT, ANIMTYPE_DSMESH, ANIMTYPE_DSNTREE, ANIMTYPE_DSPART, ANIMTYPE_DSSKEY, ANIMTYPE_DSTEX, ANIMTYPE_DSWOR, ANIMTYPE_FCURVE, ANIMTYPE_FILLACTD, ANIMTYPE_FILLDRIVERS, ANIMTYPE_FILLMATD, ANIMTYPE_FILLPARTD, ANIMTYPE_FILLTEXD, ANIMTYPE_GPLAYER, ANIMTYPE_GROUP, ANIMTYPE_NLAACTION, ANIMTYPE_NLATRACK, ANIMTYPE_OBJECT, ANIMTYPE_SCENE, ANIMTYPE_SHAPEKEY, ANIMTYPE_SUMMARY, BKE_animdata_from_id(), BLI_findindex(), Key::block, bAction::curves, bAnimListElem::data, bAnimListElem::datatype, FILTER_ARM_OBJD, FILTER_CAM_OBJD, FILTER_CUR_OBJD, FILTER_LAM_OBJD, FILTER_LATTICE_OBJD, FILTER_MAT_OBJC, FILTER_MAT_OBJD, FILTER_MESH_OBJD, FILTER_NTREE_SCED, FILTER_PART_OBJC, FILTER_PART_OBJD, FILTER_SKE_OBJD, FILTER_TEX_DATA, FILTER_TEX_LAMC, FILTER_TEX_MATC, FILTER_TEX_WORC, FILTER_WOR_SCED, KeyBlock::flag, bGPDlayer::flag, bAnimListElem::flag, Object::flag, FCurve::flag, bActionGroup::flag, bAction::flag, NlaTrack::flag, Scene::flag, AnimData::flag, GS, Object::id, bAnimListElem::id, ID_LA, ID_MA, ID_WO, if(), bAnimListElem::index, bAnimListElem::key_data, key_get_curValue_rnaPath(), list_find_fcurve(), MEM_callocN(), MEM_freeN(), ID::name, NULL, Base::object, bAnimListElem::owner, bAnimListElem::ownertype, NlaTrack::strips, and bAnimListElem::type.
Referenced by animdata_filter_action(), animdata_filter_dopesheet_mats(), animdata_filter_dopesheet_ob(), animdata_filter_dopesheet_obdata(), animdata_filter_dopesheet_particles(), animdata_filter_dopesheet_scene(), animdata_filter_dopesheet_summary(), animdata_filter_dopesheet_texs(), animdata_filter_fcurves(), animdata_filter_gpencil(), animdata_filter_nla(), and animdata_filter_shapekey().
| static short nlaedit_get_context | ( | bAnimContext * | ac, |
| SpaceNla * | snla | ||
| ) | [static] |
Definition at line 236 of file anim_filter.c.
References SpaceNla::ads, ADS_FILTER_ONLYNLA, ANIMCONT_NLA, bAnimContext::data, bAnimContext::datatype, bDopeSheet::filterflag, MEM_callocN(), NULL, bAnimContext::scene, and bDopeSheet::source.
Referenced by ANIM_animdata_context_getdata().
| static int skip_fcurve_selected_data | ( | bDopeSheet * | ads, |
| FCurve * | fcu, | ||
| ID * | owner_id, | ||
| int | filter_mode | ||
| ) | [static] |
Definition at line 810 of file anim_filter.c.
References ADS_FILTER_INCL_HIDDEN, ANIMFILTER_VISIBLE, BLI_getQuotedStr(), bPoseChannel::bone, BONE_SELECTED, Object::data, FALSE, bDopeSheet::filterflag, Bone::flag, Sequence::flag, bNode::flag, get_pose_channel(), get_seq_by_name(), GS, ID_NT, ID_OB, ID_SCE, if(), Bone::layer, bArmature::layer, MEM_freeN(), ID::name, NODE_SELECT, nodeFindNodebyName(), NULL, Object::pose, FCurve::rna_path, SELECT, seq_give_editing(), and Editing::seqbasep.
Referenced by animdata_filter_fcurve_next().
| static short skip_fcurve_with_name | ( | bDopeSheet * | ads, |
| FCurve * | fcu, | ||
| ID * | owner_id | ||
| ) | [static] |
Definition at line 884 of file anim_filter.c.
References ANIM_channel_get_typeinfo(), ANIMTYPE_FCURVE, BLI_strcasestr(), bAnimListElem::data, bAnimListElem::id, bAnimChannelType::name, NULL, bDopeSheet::searchstr, and bAnimListElem::type.
Referenced by animdata_filter_fcurve_next().