|
Blender V4.3
|
#include <cstdio>#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_listbase.h"#include "BLI_span.hh"#include "BLI_utildefines.h"#include "DNA_anim_types.h"#include "DNA_gpencil_legacy_types.h"#include "DNA_key_types.h"#include "DNA_mask_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_path.hh"#include "BKE_action.hh"#include "BKE_anim_data.hh"#include "BKE_context.hh"#include "BKE_fcurve.hh"#include "BKE_global.hh"#include "BKE_gpencil_legacy.h"#include "BKE_grease_pencil.hh"#include "BKE_layer.hh"#include "BKE_lib_id.hh"#include "BKE_mask.h"#include "BKE_nla.hh"#include "BKE_scene.hh"#include "BKE_screen.hh"#include "BKE_workspace.hh"#include "ANIM_action.hh"#include "ANIM_action_legacy.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_build.hh"#include "UI_interface.hh"#include "UI_view2d.hh"#include "ED_armature.hh"#include "ED_keyframes_edit.hh"#include "ED_markers.hh"#include "ED_object.hh"#include "ED_screen.hh"#include "ED_select_utils.hh"#include "ANIM_animdata.hh"#include "ANIM_fcurve.hh"#include "WM_api.hh"#include "WM_message.hh"#include "WM_types.hh"#include "BLT_translation.hh"Go to the source code of this file.
Classes | |
| struct | tReorderChannelIsland |
Set/Toggle Channel Flags Operator Utilities | |
| static const EnumPropertyItem | prop_animchannel_setflag_types [] |
| static const EnumPropertyItem | prop_animchannel_settings_types [] |
| static void | setflag_anim_channels (bAnimContext *ac, eAnimChannel_Settings setting, eAnimChannels_SetFlag mode, bool onlysel, bool flush) |
| static int | animchannels_setflag_exec (bContext *C, wmOperator *op) |
| static void | ANIM_OT_channels_setting_enable (wmOperatorType *ot) |
| static void | ANIM_OT_channels_setting_disable (wmOperatorType *ot) |
| static void | ANIM_OT_channels_setting_toggle (wmOperatorType *ot) |
| static void | ANIM_OT_channels_editable_toggle (wmOperatorType *ot) |
| using AnimChanRearrangeFp = bool (*)(ListBase *list, tReorderChannelIsland *island) |
typedef for channel rearranging function
| list | List of tReorderChannelIsland's that channels belong to |
| island | Island to be moved |
Definition at line 1260 of file anim_channels_edit.cc.
| Enumerator | |
|---|---|
| REARRANGE_ANIMCHAN_TOP | |
| REARRANGE_ANIMCHAN_UP | |
| REARRANGE_ANIMCHAN_DOWN | |
| REARRANGE_ANIMCHAN_BOTTOM | |
Definition at line 1109 of file anim_channels_edit.cc.
| enum eReorderIslandFlag |
| Enumerator | |
|---|---|
| REORDER_ISLAND_SELECTED | |
| REORDER_ISLAND_UNTOUCHABLE | |
| REORDER_ISLAND_MOVED | |
| REORDER_ISLAND_HIDDEN | |
Definition at line 1136 of file anim_channels_edit.cc.
Definition at line 215 of file anim_channels_edit.cc.
References BLI_listbase_is_empty(), BLI_rctf_pad_y(), BLI_rctf_scale(), bounds(), ED_context_get_markers(), UI_MARKER_MARGIN_Y, UI_TIME_SCRUB_MARGIN_Y, and V2D_SCROLL_HANDLE_HEIGHT.
Referenced by ANIM_frame_channel_y_extents(), graphkeys_channel_view_pick_invoke(), graphkeys_view_selected_channels_exec(), and view_curve_in_graph_editor_exec().
| void ANIM_anim_channels_select_set | ( | bAnimContext * | ac, |
| eAnimChannels_SetFlag | sel ) |
Set selection state of all animation channels in the context.
Definition at line 819 of file anim_channels_edit.cc.
References ANIM_animdata_freelist(), anim_channels_for_selection(), and anim_channels_select_set().
Referenced by animchannels_box_select_exec(), animchannels_selectall_exec(), click_select_channel_action_slot(), click_select_channel_dummy(), click_select_channel_fcurve(), click_select_channel_gplayer(), click_select_channel_grease_pencil_layer(), click_select_channel_group(), click_select_channel_masklayer(), click_select_channel_object(), click_select_channel_shapekey(), drivers_editor_show_exec(), mouse_action_keys(), mouse_graph_keys(), mouse_nla_strips(), and mouse_nla_tracks().
| void ANIM_anim_channels_select_toggle | ( | bAnimContext * | ac | ) |
Toggle selection state of all animation channels in the context.
Definition at line 826 of file anim_channels_edit.cc.
References ANIM_animdata_freelist(), anim_channels_for_selection(), anim_channels_select_set(), and anim_channels_selection_flag_for_toggle().
Referenced by animchannels_selectall_exec().
|
static |
Definition at line 520 of file anim_channels_edit.cc.
References ANIM_animdata_filter(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, bAnimContext::data, and bAnimContext::datatype.
Referenced by ANIM_anim_channels_select_set(), ANIM_anim_channels_select_toggle(), animchannel_has_active_of_type(), and animchannel_select_range().
|
static |
Definition at line 674 of file anim_channels_edit.cc.
References ACHANNEL_SET_FLAG, ACHANNEL_SETFLAG_EXTEND_RANGE, Object::adt, ADT_UI_SELECTED, AGRP_SELECTED, ANIMTYPE_ACTION_SLOT, ANIMTYPE_ANIMDATA, ANIMTYPE_DSARM, ANIMTYPE_DSCACHEFILE, ANIMTYPE_DSCAM, ANIMTYPE_DSCUR, ANIMTYPE_DSGPENCIL, ANIMTYPE_DSHAIR, ANIMTYPE_DSLAM, ANIMTYPE_DSLAT, ANIMTYPE_DSLINESTYLE, ANIMTYPE_DSMAT, ANIMTYPE_DSMBALL, ANIMTYPE_DSMCLIP, ANIMTYPE_DSMESH, ANIMTYPE_DSNTREE, ANIMTYPE_DSPART, ANIMTYPE_DSPOINTCLOUD, ANIMTYPE_DSSKEY, ANIMTYPE_DSSPK, ANIMTYPE_DSTEX, ANIMTYPE_DSVOLUME, ANIMTYPE_DSWOR, ANIMTYPE_FCURVE, ANIMTYPE_FILLACT_LAYERED, ANIMTYPE_FILLACTD, ANIMTYPE_FILLDRIVERS, ANIMTYPE_GPDATABLOCK, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_DATABLOCK, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_GREASE_PENCIL_LAYER_GROUP, ANIMTYPE_GROUP, ANIMTYPE_MASKDATABLOCK, ANIMTYPE_MASKLAYER, ANIMTYPE_NLAACTION, ANIMTYPE_NLACONTROLS, ANIMTYPE_NLACURVE, ANIMTYPE_NLATRACK, ANIMTYPE_NONE, ANIMTYPE_NUM_TYPES, ANIMTYPE_OBJECT, ANIMTYPE_PALETTE, ANIMTYPE_SCENE, ANIMTYPE_SHAPEKEY, ANIMTYPE_SPECIALDATA__UNUSED, ANIMTYPE_SUMMARY, KeyBlock::data, FCURVE_SELECTED, bActionGroup::flag, FCurve::flag, NlaTrack::flag, GP_LAYER_SELECT, GP_LAYER_TREE_NODE_SELECT, KEYBLOCK_SEL, LISTBASE_FOREACH, MASK_LAYERFLAG_SELECT, NLATRACK_SELECTED, Base::object, SCE_DS_SELECTED, SELECT, select_pchan_for_action_group(), and templated_selection_state_update().
Referenced by ANIM_anim_channels_select_set(), and ANIM_anim_channels_select_toggle().
|
static |
Definition at line 533 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_ADD, ACHANNEL_SETFLAG_CLEAR, ADT_UI_SELECTED, AGRP_SELECTED, ANIMTYPE_ACTION_SLOT, ANIMTYPE_ANIMDATA, ANIMTYPE_DSARM, ANIMTYPE_DSCACHEFILE, ANIMTYPE_DSCAM, ANIMTYPE_DSCUR, ANIMTYPE_DSGPENCIL, ANIMTYPE_DSHAIR, ANIMTYPE_DSLAM, ANIMTYPE_DSLAT, ANIMTYPE_DSLINESTYLE, ANIMTYPE_DSMAT, ANIMTYPE_DSMBALL, ANIMTYPE_DSMCLIP, ANIMTYPE_DSMESH, ANIMTYPE_DSNTREE, ANIMTYPE_DSPART, ANIMTYPE_DSPOINTCLOUD, ANIMTYPE_DSSKEY, ANIMTYPE_DSSPK, ANIMTYPE_DSTEX, ANIMTYPE_DSVOLUME, ANIMTYPE_DSWOR, ANIMTYPE_FCURVE, ANIMTYPE_FILLACT_LAYERED, ANIMTYPE_FILLACTD, ANIMTYPE_FILLDRIVERS, ANIMTYPE_GPDATABLOCK, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_DATABLOCK, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_GREASE_PENCIL_LAYER_GROUP, ANIMTYPE_GROUP, ANIMTYPE_MASKDATABLOCK, ANIMTYPE_MASKLAYER, ANIMTYPE_NLAACTION, ANIMTYPE_NLACONTROLS, ANIMTYPE_NLACURVE, ANIMTYPE_NLATRACK, ANIMTYPE_NONE, ANIMTYPE_NUM_TYPES, ANIMTYPE_OBJECT, ANIMTYPE_PALETTE, ANIMTYPE_SCENE, ANIMTYPE_SHAPEKEY, ANIMTYPE_SPECIALDATA__UNUSED, ANIMTYPE_SUMMARY, FCURVE_SELECTED, GP_LAYER_SELECT, blender::animrig::Slot::is_selected(), KEYBLOCK_SEL, LISTBASE_FOREACH, MASK_LAYERFLAG_SELECT, NLATRACK_SELECTED, SCE_DS_SELECTED, and SELECT.
Referenced by ANIM_anim_channels_select_toggle().
|
static |
Definition at line 912 of file anim_channels_edit.cc.
References ANIM_channel_get_typeinfo(), ANIM_channel_setting_set(), bAnimChannelType::get_offset, and bAnimListElem::next.
Referenced by ANIM_flush_setting_anim_channels().
|
static |
Definition at line 841 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_CLEAR, ACHANNEL_SETTING_VISIBLE, ANIM_channel_get_typeinfo(), ANIM_channel_setting_set(), bAnimChannelType::get_offset, and bAnimListElem::prev.
Referenced by ANIM_flush_setting_anim_channels().
| void ANIM_flush_setting_anim_channels | ( | bAnimContext * | ac, |
| ListBase * | anim_data, | ||
| bAnimListElem * | ale_setting, | ||
| eAnimChannel_Settings | setting, | ||
| eAnimChannels_SetFlag | mode ) |
Flush visibility (for Graph Editor) changes up/down hierarchy for changes in the given setting
Definition at line 949 of file anim_channels_edit.cc.
References ACHANNEL_SETTING_ALWAYS_VISIBLE, ANIM_channel_get_typeinfo(), anim_flush_channel_setting_down(), anim_flush_channel_setting_up(), bAnimListElem::data, ELEM, ListBase::first, bAnimChannelType::get_offset, bAnimListElem::id, LISTBASE_FOREACH, printf, and bAnimListElem::type.
Referenced by achannel_setting_flush_widget_cb(), graphview_curves_hide_exec(), graphview_curves_reveal_exec(), and setflag_anim_channels().
| void ANIM_frame_channel_y_extents | ( | bContext * | C, |
| bAnimContext * | ac ) |
Definition at line 1002 of file anim_channels_edit.cc.
References add_region_padding(), ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, bAnimContext::area, BKE_area_find_region_type(), BLI_rctf_is_valid(), BLI_rctf_union(), bounds(), View2D::cur, bAnimContext::data, bAnimContext::datatype, RenderData::flag, FLT_MAX, get_channel_bounds(), LISTBASE_FOREACH, RenderData::pefra, RenderData::psfra, Scene::r, RGN_TYPE_WINDOW, bAnimContext::scene, SCER_PRV_RANGE, ARegion::v2d, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
| bool ANIM_is_active_channel | ( | bAnimListElem * | ale | ) |
Return whether channel is active.
Definition at line 411 of file anim_channels_edit.cc.
References bAnimListElem::adt, ADT_UI_ACTIVE, AGRP_ACTIVE, ANIMTYPE_ACTION_SLOT, ANIMTYPE_ANIMDATA, ANIMTYPE_DSARM, ANIMTYPE_DSCACHEFILE, ANIMTYPE_DSCAM, ANIMTYPE_DSCUR, ANIMTYPE_DSGPENCIL, ANIMTYPE_DSHAIR, ANIMTYPE_DSLAM, ANIMTYPE_DSLAT, ANIMTYPE_DSLINESTYLE, ANIMTYPE_DSMAT, ANIMTYPE_DSMBALL, ANIMTYPE_DSMCLIP, ANIMTYPE_DSMESH, ANIMTYPE_DSNTREE, ANIMTYPE_DSPART, ANIMTYPE_DSPOINTCLOUD, ANIMTYPE_DSSKEY, ANIMTYPE_DSSPK, ANIMTYPE_DSTEX, ANIMTYPE_DSVOLUME, ANIMTYPE_DSWOR, ANIMTYPE_FCURVE, ANIMTYPE_FILLACT_LAYERED, ANIMTYPE_FILLACTD, ANIMTYPE_FILLDRIVERS, ANIMTYPE_GPDATABLOCK, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_DATABLOCK, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_GREASE_PENCIL_LAYER_GROUP, ANIMTYPE_GROUP, ANIMTYPE_MASKDATABLOCK, ANIMTYPE_MASKLAYER, ANIMTYPE_NLAACTION, ANIMTYPE_NLACONTROLS, ANIMTYPE_NLACURVE, ANIMTYPE_NLATRACK, ANIMTYPE_NONE, ANIMTYPE_NUM_TYPES, ANIMTYPE_OBJECT, ANIMTYPE_PALETTE, ANIMTYPE_SCENE, ANIMTYPE_SHAPEKEY, ANIMTYPE_SPECIALDATA__UNUSED, ANIMTYPE_SUMMARY, bAnimListElem::data, FCURVE_ACTIVE, AnimData::flag, bActionGroup::flag, bGPDlayer::flag, FCurve::flag, GP_LAYER_ACTIVE, bAnimListElem::id, blender::animrig::Slot::is_active(), and bAnimListElem::type.
Referenced by animchannel_has_active_of_type(), and animchannel_select_range().
|
static |
Definition at line 4812 of file anim_channels_edit.cc.
References animchannels_channel_select_keys_invoke(), animedit_poll_channels_active(), wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 5007 of file anim_channels_edit.cc.
References channel_view_poll(), wmOperatorType::description, wmOperatorType::flag, graphkeys_channel_view_pick_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 5147 of file anim_channels_edit.cc.
References BEZT_IPO_BEZ, channel_bake_key_options, channel_view_poll(), channels_bake_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_enum(), RNA_def_float(), RNA_def_int_array(), and wmOperatorType::srna.
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 3344 of file anim_channels_edit.cc.
References animchannels_clean_empty_exec(), animedit_poll_channels_nla_tweakmode_off(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 4681 of file anim_channels_edit.cc.
References animchannels_mouseclick_invoke(), animedit_poll_channels_active(), wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 3228 of file anim_channels_edit.cc.
References animchannels_collapse_exec(), animedit_poll_channels_active(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 2882 of file anim_channels_edit.cc.
References animchannels_delete_exec(), animedit_poll_channels_active(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 3123 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_TOGGLE, ACHANNEL_SETTING_PROTECT, animchannels_setflag_exec(), animedit_poll_channels_active(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, prop_animchannel_setflag_types, prop_animchannel_settings_types, PROP_HIDDEN, RNA_def_enum(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 3179 of file anim_channels_edit.cc.
References animchannels_expand_exec(), animedit_poll_channels_active(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 3425 of file anim_channels_edit.cc.
References animchannels_enable_exec(), animchannels_enable_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 2455 of file anim_channels_edit.cc.
References animchannels_group_exec(), animchannels_grouping_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, bActionGroup::name, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_string(), wmOperatorType::srna, and WM_operator_props_popup().
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 2258 of file anim_channels_edit.cc.
References animchannels_rearrange_exec(), animedit_poll_channels_nla_tweakmode_off(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_animchannel_rearrange_types, REARRANGE_ANIMCHAN_DOWN, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 3925 of file anim_channels_edit.cc.
References animchannels_rename_invoke(), animedit_poll_channels_active(), wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 3558 of file anim_channels_edit.cc.
References animchannels_selectall_exec(), animedit_poll_channels_nla_tweakmode_off(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_select_all().
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 3747 of file anim_channels_edit.cc.
References animchannels_box_select_exec(), animedit_poll_channels_nla_tweakmode_off(), wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_gesture_box_cancel(), WM_gesture_box_invoke(), WM_gesture_box_modal(), and WM_operator_properties_gesture_box_select().
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 3502 of file anim_channels_edit.cc.
References animchannels_select_filter_invoke(), animchannels_select_filter_modal(), animchannels_select_filter_poll(), wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 3071 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_CLEAR, animchannels_setflag_exec(), animedit_poll_channels_active(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_animchannel_setflag_types, prop_animchannel_settings_types, PROP_HIDDEN, RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 3045 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_ADD, animchannels_setflag_exec(), animedit_poll_channels_active(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_animchannel_setflag_types, prop_animchannel_settings_types, PROP_HIDDEN, RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 3097 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_TOGGLE, animchannels_setflag_exec(), animedit_poll_channels_active(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_animchannel_setflag_types, prop_animchannel_settings_types, PROP_HIDDEN, RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 2548 of file anim_channels_edit.cc.
References animchannels_grouping_poll(), animchannels_ungroup_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 4923 of file anim_channels_edit.cc.
References channel_view_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, graphkeys_view_selected_channels_exec(), wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_animchannels().
|
static |
Definition at line 5679 of file anim_channels_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, RNA_def_boolean(), wmOperatorType::srna, and view_curve_in_graph_editor_exec().
Referenced by ED_operatortypes_animchannels().
| void ANIM_set_active_channel | ( | bAnimContext * | ac, |
| void * | data, | ||
| eAnimCont_Types | datatype, | ||
| eAnimFilter_Flags | filter, | ||
| void * | channel_data, | ||
| eAnim_ChannelType | channel_type ) |
Set the given animation-channel as the active one for the active context.
Definition at line 232 of file anim_channels_edit.cc.
References ACHANNEL_SET_FLAG, ACHANNEL_SETFLAG_CLEAR, bAnimListElem::adt, ADT_UI_ACTIVE, AGRP_ACTIVE, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMTYPE_ACTION_SLOT, ANIMTYPE_ANIMDATA, ANIMTYPE_DSARM, ANIMTYPE_DSCACHEFILE, ANIMTYPE_DSCAM, ANIMTYPE_DSCUR, ANIMTYPE_DSGPENCIL, ANIMTYPE_DSHAIR, ANIMTYPE_DSLAM, ANIMTYPE_DSLAT, ANIMTYPE_DSLINESTYLE, ANIMTYPE_DSMAT, ANIMTYPE_DSMBALL, ANIMTYPE_DSMCLIP, ANIMTYPE_DSMESH, ANIMTYPE_DSNTREE, ANIMTYPE_DSPART, ANIMTYPE_DSPOINTCLOUD, ANIMTYPE_DSSKEY, ANIMTYPE_DSSPK, ANIMTYPE_DSTEX, ANIMTYPE_DSVOLUME, ANIMTYPE_DSWOR, ANIMTYPE_FCURVE, ANIMTYPE_FILLACT_LAYERED, ANIMTYPE_FILLACTD, ANIMTYPE_FILLDRIVERS, ANIMTYPE_GPDATABLOCK, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_DATABLOCK, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_GREASE_PENCIL_LAYER_GROUP, ANIMTYPE_GROUP, ANIMTYPE_MASKDATABLOCK, ANIMTYPE_MASKLAYER, ANIMTYPE_NLAACTION, ANIMTYPE_NLACONTROLS, ANIMTYPE_NLACURVE, ANIMTYPE_NLATRACK, ANIMTYPE_NONE, ANIMTYPE_NUM_TYPES, ANIMTYPE_OBJECT, ANIMTYPE_PALETTE, ANIMTYPE_SCENE, ANIMTYPE_SHAPEKEY, ANIMTYPE_SPECIALDATA__UNUSED, ANIMTYPE_SUMMARY, BLI_listbase_is_empty(), bAnimListElem::data, FCURVE_ACTIVE, ListBase::first, AnimData::flag, bActionGroup::flag, bGPDlayer::flag, FCurve::flag, NlaTrack::flag, GP_LAYER_ACTIVE, bAnimListElem::next, NLATRACK_ACTIVE, and bAnimListElem::type.
Referenced by box_select_graphcurves(), click_select_channel_fcurve(), click_select_channel_gplayer(), click_select_channel_group(), drivers_editor_show_exec(), mouse_action_keys(), mouse_graph_keys(), mouse_nla_strips(), and mouse_nla_tracks().
|
static |
Definition at line 3969 of file anim_channels_edit.cc.
References ANIM_animdata_freelist(), anim_channels_for_selection(), ANIM_is_active_channel(), and LISTBASE_FOREACH.
Referenced by mouse_anim_channels().
|
static |
Definition at line 3989 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_ADD, ACHANNEL_SETTING_SELECT, ANIM_animdata_freelist(), ANIM_channel_setting_set(), anim_channels_for_selection(), ANIM_is_active_channel(), ANIMTYPE_GROUP, bAnimContext::data, bAnimListElem::data, LISTBASE_FOREACH, select_pchan_for_action_group(), and bAnimListElem::type.
Referenced by click_select_channel_action_slot(), click_select_channel_dummy(), click_select_channel_fcurve(), click_select_channel_gplayer(), click_select_channel_grease_pencil_layer(), click_select_channel_group(), and click_select_channel_object().
|
static |
Definition at line 3711 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_ADD, ACHANNEL_SETFLAG_CLEAR, ANIM_anim_channels_select_set(), ANIM_animdata_get_context(), box_select_anim_channels(), NA_SELECTED, NC_ANIMATION, ND_ANIMCHAN, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), select(), WM_event_add_notifier(), and WM_operator_properties_border_to_rcti().
Referenced by ANIM_OT_channels_select_box().
|
static |
Definition at line 3864 of file anim_channels_edit.cc.
References ANIM_UI_get_channel_name_width(), ANIM_UI_get_channel_step(), ANIM_UI_get_first_channel_top(), ANIMCONT_NLA, bAnimContext::datatype, NLATRACK_FIRST_TOP, NLATRACK_NAMEWIDTH, NLATRACK_STEP, bAnimContext::region, bAnimContext::sl, UI_view2d_listview_view_to_cell(), UI_view2d_region_to_view(), x, and y.
Referenced by animchannels_channel_select_keys_invoke(), animchannels_rename_invoke(), and graphkeys_channel_view_pick_invoke().
|
static |
Definition at line 4787 of file anim_channels_edit.cc.
References ANIM_animdata_get_context(), animchannels_channel_get(), wmEvent::mval, NA_SELECTED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_boolean_get(), select_anim_channel_keys(), and WM_event_add_notifier().
Referenced by ANIM_OT_channel_select_keys().
|
static |
Definition at line 3264 of file anim_channels_edit.cc.
References AnimData::action, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_ANIMDATA, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, BKE_animdata_free(), BLI_assert, bAction::curves, bAnimContext::data, bAnimContext::datatype, AnimData::drivers, ELEM, filter(), ListBase::first, LISTBASE_FOREACH, NA_EDITED, NA_REMOVED, NC_ANIMATION, ND_ANIMCHAN, ND_NLA, AnimData::nla_tracks, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by ANIM_OT_channels_clean_empty().
|
static |
Definition at line 3204 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_CLEAR, ACHANNEL_SETTING_EXPAND, ANIM_animdata_get_context(), NA_EDITED, NC_ANIMATION, ND_ANIMCHAN, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), setflag_anim_channels(), and WM_event_add_notifier().
Referenced by ANIM_OT_channels_collapse().
|
static |
Definition at line 2589 of file anim_channels_edit.cc.
References AnimData::action, action_groups_remove_channel(), ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMCONT_DRIVERS, ANIMCONT_SHAPEKEY, blender::animrig::animdata_fcurve_delete(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, ANIMTYPE_ACTION_SLOT, ANIMTYPE_ANIMDATA, ANIMTYPE_DSARM, ANIMTYPE_DSCACHEFILE, ANIMTYPE_DSCAM, ANIMTYPE_DSCUR, ANIMTYPE_DSGPENCIL, ANIMTYPE_DSHAIR, ANIMTYPE_DSLAM, ANIMTYPE_DSLAT, ANIMTYPE_DSLINESTYLE, ANIMTYPE_DSMAT, ANIMTYPE_DSMBALL, ANIMTYPE_DSMCLIP, ANIMTYPE_DSMESH, ANIMTYPE_DSNTREE, ANIMTYPE_DSPART, ANIMTYPE_DSPOINTCLOUD, ANIMTYPE_DSSKEY, ANIMTYPE_DSSPK, ANIMTYPE_DSTEX, ANIMTYPE_DSVOLUME, ANIMTYPE_DSWOR, ANIMTYPE_FCURVE, ANIMTYPE_FILLACT_LAYERED, ANIMTYPE_FILLACTD, ANIMTYPE_FILLDRIVERS, ANIMTYPE_GPDATABLOCK, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_DATABLOCK, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_GREASE_PENCIL_LAYER_GROUP, ANIMTYPE_GROUP, ANIMTYPE_MASKDATABLOCK, ANIMTYPE_MASKLAYER, ANIMTYPE_NLAACTION, ANIMTYPE_NLACONTROLS, ANIMTYPE_NLACURVE, ANIMTYPE_NLATRACK, ANIMTYPE_NONE, ANIMTYPE_NUM_TYPES, ANIMTYPE_OBJECT, ANIMTYPE_PALETTE, ANIMTYPE_SCENE, ANIMTYPE_SHAPEKEY, ANIMTYPE_SPECIALDATA__UNUSED, ANIMTYPE_SUMMARY, BKE_fcurve_free(), BKE_gpencil_free_data(), BKE_gpencil_layer_delete(), BKE_id_free_us(), BKE_mask_layer_remove(), BLI_assert, BLI_assert_msg, BLI_assert_unreachable, BLI_freelinkN(), BLI_remlink(), bActionGroup::channel_bag, bActionGroup::channels, CTX_data_main(), CTX_data_scene(), bAnimContext::data, bAnimContext::datatype, DEG_id_tag_update(), DEG_id_tag_update_ex(), DEG_relations_tag_update(), blender::animrig::ChannelBag::fcurve(), bActionGroup::fcurve_range_length, bActionGroup::fcurve_range_start, blender::animrig::ChannelBag::fcurve_remove(), NlaStrip::fcurves, filter(), ListBase::first, bGPdata::flag, NlaStrip::flag, GP_DATA_ANNOTATIONS, bAction::groups, FCurve::grp, GS, bAction::id, bGPdata::id, GreasePencil::id, Mask::id, ID_AC, ID_RECALC_ANIMATION, ID_RECALC_GEOMETRY, blender::animrig::Action::is_action_layered(), bGPdata::layers, LISTBASE_FOREACH, NA_EDITED, NA_REMOVED, NC_ANIMATION, ND_ANIMCHAN, ND_KEYFRAME, FCurve::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, printf, FCurve::rna_path, blender::animrig::Action::slot_remove(), STREQ, tag_update_animation_element(), WM_event_add_notifier(), and wrap().
Referenced by ANIM_OT_channels_delete().
|
static |
Definition at line 3383 of file anim_channels_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_NODUPLIS, bAnimContext::data, bAnimContext::datatype, FCurve::driver, filter(), ChannelDriver::flag, FCurve::flag, LISTBASE_FOREACH, NA_EDITED, NC_ANIMATION, ND_ANIMCHAN, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by ANIM_OT_channels_fcurves_enable().
|
static |
Definition at line 3365 of file anim_channels_edit.cc.
References CTX_wm_area(), CTX_wm_region(), ELEM, SPACE_ACTION, and SPACE_GRAPH.
Referenced by ANIM_OT_channels_fcurves_enable().
|
static |
Definition at line 3155 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_ADD, ACHANNEL_SETTING_EXPAND, ANIM_animdata_get_context(), NA_EDITED, NC_ANIMATION, ND_ANIMCHAN, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), setflag_anim_channels(), and WM_event_add_notifier().
Referenced by ANIM_OT_channels_expand().
|
static |
Definition at line 2333 of file anim_channels_edit.cc.
References AnimData::action, action_groups_add_channel(), action_groups_add_new(), action_groups_remove_channel(), blender::animrig::legacy::action_treat_as_legacy(), bAnimListElem::adt, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMCONT_CHANNEL, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_SEL, BLI_assert, BLI_freelinkN(), BLI_listbase_is_empty(), blender::animrig::ChannelBag::channel_group_create(), bActionGroup::channels, blender::animrig::ChannelBag::fcurve_assign_to_channel_group(), ListBase::first, bAction::groups, FCurve::grp, and LISTBASE_FOREACH.
Referenced by animchannels_group_exec().
|
static |
Definition at line 2417 of file anim_channels_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), animchannels_group_channels(), ANIMFILTER_ANIMDATA, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, bAnimContext::data, bAnimContext::datatype, filter(), LISTBASE_FOREACH, MAX_NAME, NA_EDITED, NC_ANIMATION, ND_ANIMCHAN, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), and WM_event_add_notifier().
Referenced by ANIM_OT_channels_group().
|
static |
Definition at line 2287 of file anim_channels_edit.cc.
References CTX_wm_area(), CTX_wm_region(), CTX_wm_space_data(), ELEM, SpaceAction::mode, SpaceGraph::mode, SACTCONT_ACTION, SACTCONT_DOPESHEET, SIPO_MODE_ANIMATION, SPACE_ACTION, and SPACE_GRAPH.
Referenced by ANIM_OT_channels_group(), and ANIM_OT_channels_ungroup().
|
static |
Handle picking logic.
Definition at line 4625 of file anim_channels_edit.cc.
References ANIM_animdata_get_context(), ANIM_UI_get_channel_name_width(), ANIM_UI_get_channel_step(), ANIM_UI_get_first_channel_top(), mouse_anim_channels(), wmEvent::mval, NC_ANIMATION, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, bAnimContext::region, RNA_boolean_get(), SELECT_EXTEND_RANGE, SELECT_INVERT, SELECT_REPLACE, UI_view2d_listview_view_to_cell(), UI_view2d_region_to_view(), WM_event_add_notifier(), WM_operator_flag_only_pass_through_on_press(), x, and y.
Referenced by ANIM_OT_channels_click().
|
static |
Definition at line 2163 of file anim_channels_edit.cc.
References AnimData::action, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMCONT_ACTION, ANIMCONT_DOPESHEET, ANIMCONT_DRIVERS, ANIMCONT_GPENCIL, ANIMCONT_MASK, ANIMCONT_NLA, ANIMCONT_SHAPEKEY, ANIMCONT_TIMELINE, ANIMFILTER_ANIMDATA, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, bAnimContext::data, bAnimContext::datatype, DEG_id_tag_update(), ELEM, filter(), ListBase::first, G, G_DEBUG, ID_RECALC_ANIMATION, LISTBASE_FOREACH, NA_EDITED, NC_ANIMATION, ND_ANIMCHAN, ND_NLA_ORDER, AnimData::nla_tracks, OPERATOR_CANCELLED, OPERATOR_FINISHED, printf, wmOperator::ptr, rearrange_action_channels(), rearrange_driver_channels(), rearrange_gpencil_channels(), rearrange_grease_pencil_channels(), rearrange_nla_control_channels(), rearrange_nla_tracks(), RNA_enum_get(), and WM_event_add_notifier().
Referenced by ANIM_OT_channels_move().
|
static |
Definition at line 3903 of file anim_channels_edit.cc.
References ANIM_animdata_get_context(), animchannels_channel_get(), wmEvent::mval, NA_RENAME, NC_ANIMATION, ND_ANIMCHAN, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, rename_anim_channels(), and WM_event_add_notifier().
Referenced by ANIM_OT_channels_rename().
|
static |
Definition at line 3459 of file anim_channels_edit.cc.
References BKE_area_find_region_type(), CTX_wm_area(), CTX_wm_region(), CTX_wm_region_set(), ED_region_tag_redraw(), ED_region_toggle_hidden(), ARegion::flag, OPERATOR_RUNNING_MODAL, RGN_FLAG_HIDDEN, RGN_TYPE_CHANNELS, and WM_event_add_modal_handler().
Referenced by ANIM_OT_channels_select_filter().
|
static |
Definition at line 3484 of file anim_channels_edit.cc.
References bAnimContext::ads, ANIM_animdata_get_context(), CTX_wm_region(), NA_EDITED, NC_ANIMATION, ND_ANIMCHAN, OPERATOR_CANCELLED, OPERATOR_FINISHED, UI_textbutton_activate_rna(), and WM_event_add_notifier().
Referenced by ANIM_OT_channels_select_filter().
|
static |
Definition at line 3447 of file anim_channels_edit.cc.
References CTX_wm_area(), ELEM, SPACE_ACTION, SPACE_GRAPH, and SPACE_NLA.
Referenced by ANIM_OT_channels_select_filter().
|
static |
Definition at line 3523 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_ADD, ACHANNEL_SETFLAG_CLEAR, ACHANNEL_SETFLAG_INVERT, ANIM_anim_channels_select_set(), ANIM_anim_channels_select_toggle(), ANIM_animdata_get_context(), BLI_assert, NA_SELECTED, NC_ANIMATION, ND_ANIMCHAN, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, and WM_event_add_notifier().
Referenced by ANIM_OT_channels_select_all().
|
static |
Definition at line 3012 of file anim_channels_edit.cc.
References ACHANNEL_SETTING_EXPAND, ANIM_animdata_get_context(), NA_EDITED, NC_ANIMATION, ND_ANIMCHAN, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), setflag_anim_channels(), and WM_event_add_notifier().
Referenced by ANIM_OT_channels_editable_toggle(), ANIM_OT_channels_setting_disable(), ANIM_OT_channels_setting_enable(), and ANIM_OT_channels_setting_toggle().
|
static |
Definition at line 2487 of file anim_channels_edit.cc.
References action_groups_remove_channel(), blender::animrig::legacy::action_treat_as_legacy(), ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, BLI_addtail(), BLI_freelinkN(), BLI_listbase_is_empty(), bActionGroup::channel_bag, bActionGroup::channels, bAction::curves, bAnimContext::data, bAnimContext::datatype, filter(), bAction::groups, FCurve::grp, LISTBASE_FOREACH, NA_EDITED, NC_ANIMATION, ND_ANIMCHAN, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by ANIM_OT_channels_ungroup().
|
static |
Definition at line 1058 of file anim_channels_edit.cc.
References CTX_wm_area(), CTX_wm_region(), ELEM, SPACE_ACTION, SPACE_GRAPH, and SPACE_NLA.
Referenced by ANIM_OT_channel_select_keys(), ANIM_OT_channels_click(), ANIM_OT_channels_collapse(), ANIM_OT_channels_delete(), ANIM_OT_channels_editable_toggle(), ANIM_OT_channels_expand(), ANIM_OT_channels_rename(), ANIM_OT_channels_setting_disable(), ANIM_OT_channels_setting_enable(), and ANIM_OT_channels_setting_toggle().
|
static |
Definition at line 1076 of file anim_channels_edit.cc.
References CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), ELEM, SCE_NLA_EDIT_ON, SPACE_ACTION, SPACE_GRAPH, and SPACE_NLA.
Referenced by ANIM_OT_channels_clean_empty(), ANIM_OT_channels_move(), ANIM_OT_channels_select_all(), and ANIM_OT_channels_select_box().
|
static |
Definition at line 3582 of file anim_channels_edit.cc.
References ACHANNEL_SET_FLAG, ACHANNEL_SETTING_SELECT, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_channel_setting_set(), ANIM_UI_get_channel_step(), ANIM_UI_get_first_channel_top(), ANIMCONT_NLA, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_ACTION_SLOT, ANIMTYPE_ANIMDATA, ANIMTYPE_DSARM, ANIMTYPE_DSCACHEFILE, ANIMTYPE_DSCAM, ANIMTYPE_DSCUR, ANIMTYPE_DSGPENCIL, ANIMTYPE_DSHAIR, ANIMTYPE_DSLAM, ANIMTYPE_DSLAT, ANIMTYPE_DSLINESTYLE, ANIMTYPE_DSMAT, ANIMTYPE_DSMBALL, ANIMTYPE_DSMCLIP, ANIMTYPE_DSMESH, ANIMTYPE_DSNTREE, ANIMTYPE_DSPART, ANIMTYPE_DSPOINTCLOUD, ANIMTYPE_DSSKEY, ANIMTYPE_DSSPK, ANIMTYPE_DSTEX, ANIMTYPE_DSVOLUME, ANIMTYPE_DSWOR, ANIMTYPE_FCURVE, ANIMTYPE_FILLACT_LAYERED, ANIMTYPE_FILLACTD, ANIMTYPE_FILLDRIVERS, ANIMTYPE_GPDATABLOCK, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_DATABLOCK, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_GREASE_PENCIL_LAYER_GROUP, ANIMTYPE_GROUP, ANIMTYPE_MASKDATABLOCK, ANIMTYPE_MASKLAYER, ANIMTYPE_NLAACTION, ANIMTYPE_NLACONTROLS, ANIMTYPE_NLACURVE, ANIMTYPE_NLATRACK, ANIMTYPE_NONE, ANIMTYPE_NUM_TYPES, ANIMTYPE_OBJECT, ANIMTYPE_PALETTE, ANIMTYPE_SCENE, ANIMTYPE_SHAPEKEY, ANIMTYPE_SPECIALDATA__UNUSED, ANIMTYPE_SUMMARY, bAnimContext::data, bAnimContext::datatype, filter(), bActionGroup::flag, LISTBASE_FOREACH, NLATRACK_FIRST_TOP, NLATRACK_SELECTED, NLATRACK_STEP, bAnimContext::region, select_pchan_for_action_group(), bAnimContext::sl, templated_selection_state_update(), UI_view2d_region_to_view(), ARegion::v2d, rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by animchannels_box_select_exec().
|
static |
Definition at line 5472 of file anim_channels_edit.cc.
References BKE_animdata_from_id(), BKE_nla_tweakedit_remap(), BLI_rctf_is_valid(), BLI_rctf_union(), bounds(), FCURVE_SELECTED, FCURVE_VISIBLE, get_normalized_fcurve_bounds(), get_view_range(), NLATIME_CONVERT_UNMAP, SPACE_GRAPH, and SpaceLink::spacetype.
Referenced by calculate_selection_fcurve_bounds(), and view_curve_in_graph_editor_exec().
|
static |
Definition at line 5522 of file anim_channels_edit.cc.
References BKE_animdata_id_is_animated(), BLI_rctf_is_valid(), BLI_rctf_union(), bounds(), blender::StringRefNull::c_str(), calculate_fcurve_bounds_and_unhide(), count_fcurves_hidden_by_filter(), get_fcurves_of_property(), blender::StringRefBase::is_empty(), RNA_path_resolve_property(), bAnimContext::scene, selection, and bAnimContext::sl.
Referenced by view_curve_in_graph_editor_exec().
|
static |
Definition at line 4918 of file anim_channels_edit.cc.
References ED_operator_action_active(), and ED_operator_graphedit_active().
Referenced by ANIM_OT_channel_view_pick(), ANIM_OT_channels_bake(), and ANIM_OT_channels_view_selected().
|
static |
Definition at line 5040 of file anim_channels_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_nla_mapping_get(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, blender::Vector< T, InlineBufferCapacity, Allocator >::append(), FCurve::bezt, BKE_fcurve_bezt_binarysearch_index(), BKE_nla_tweakedit_remap(), CTX_data_scene(), bAnimContext::data, bAnimContext::datatype, FMODIFIER_FLAG_MUTED, free_fmodifiers(), int, BezTriple::ipo, LISTBASE_FOREACH, max_ii(), min_ii(), FCurve::modifiers, NA_SELECTED, NC_ANIMATION, ND_KEYFRAME, NLATIME_CONVERT_UNMAP, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), RNA_float_get(), RNA_int_get_array(), RNA_int_set_array(), RPT_WARNING, SCER_PRV_RANGE, FCurve::totvert, BezTriple::vec, WM_event_add_notifier(), and WM_report().
Referenced by ANIM_OT_channels_bake().
|
static |
Definition at line 4262 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_CLEAR, ACHANNEL_SETFLAG_EXTEND_RANGE, ANIM_anim_channels_select_set(), animchannel_select_range(), ATTR_FALLTHROUGH, BLI_assert_msg, BLI_assert_unreachable, bAnimListElem::data, bAnimListElem::fcurve_owner_id, GS, ActionSlot::handle, ID_AC, blender::animrig::Slot::is_selected(), NA_SELECTED, ID::name, ND_ANIMCHAN, SELECT_ADD, SELECT_EXTEND_RANGE, SELECT_INVERT, SELECT_REPLACE, SELECT_SUBTRACT, blender::animrig::Slot::set_selected(), and blender::animrig::Action::slot_active_set().
Referenced by mouse_anim_channels().
|
static |
Definition at line 4093 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_CLEAR, ACHANNEL_SETFLAG_EXTEND_RANGE, bAnimListElem::adt, ADT_UI_ACTIVE, ADT_UI_SELECTED, ANIM_anim_channels_select_set(), animchannel_select_range(), AnimData::flag, NA_SELECTED, ND_ANIMCHAN, SELECT_EXTEND_RANGE, and SELECT_INVERT.
Referenced by mouse_anim_channels().
|
static |
Definition at line 4227 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_CLEAR, ACHANNEL_SETFLAG_EXTEND_RANGE, ANIM_anim_channels_select_set(), ANIM_set_active_channel(), animchannel_select_range(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, FCURVE_SELECTED, FCurve::flag, NA_SELECTED, ND_ANIMCHAN, SELECT_EXTEND_RANGE, SELECT_INVERT, and bAnimListElem::type.
Referenced by mouse_anim_channels().
|
static |
Definition at line 4334 of file anim_channels_edit.cc.
References bAnimListElem::data, bGPdata::flag, GP_DATA_EXPAND, NA_EDITED, and ND_ANIMCHAN.
Referenced by mouse_anim_channels().
|
static |
Definition at line 4347 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_CLEAR, ACHANNEL_SETFLAG_EXTEND_RANGE, ANIM_anim_channels_select_set(), ANIM_set_active_channel(), animchannel_select_range(), ANIMTYPE_GPLAYER, BKE_gpencil_layer_active_set(), BKE_gpencil_layer_autolock_set(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, DEG_id_tag_update(), bGPDlayer::flag, GP_LAYER_SELECT, bAnimListElem::id, bGPdata::id, ID_RECALC_GEOMETRY, NA_EDITED, NC_GPENCIL, ND_ANIMCHAN, ND_DATA, ND_SPACE_PROPERTIES, SELECT_EXTEND_RANGE, SELECT_INVERT, and WM_event_add_notifier().
Referenced by mouse_anim_channels().
|
static |
Definition at line 4391 of file anim_channels_edit.cc.
References bAnimListElem::data, GreasePencil::flag, GREASE_PENCIL_ANIM_CHANNEL_EXPANDED, NA_EDITED, and ND_ANIMCHAN.
Referenced by mouse_anim_channels().
|
static |
Definition at line 4417 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_CLEAR, ACHANNEL_SETFLAG_EXTEND_RANGE, ANIM_anim_channels_select_set(), animchannel_select_range(), CTX_wm_message_bus(), bAnimListElem::data, DEG_id_tag_update(), bAnimListElem::id, GreasePencil::id, ID_RECALC_GEOMETRY, NA_EDITED, NC_GPENCIL, ND_ANIMCHAN, ND_DATA, SELECT_EXTEND_RANGE, SELECT_INVERT, WM_event_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by mouse_anim_channels().
|
static |
Definition at line 4404 of file anim_channels_edit.cc.
References GreasePencilLayerTreeGroup::base, bAnimListElem::data, GreasePencilLayerTreeNode::flag, GP_LAYER_TREE_NODE_EXPANDED, NA_EDITED, and ND_ANIMCHAN.
Referenced by mouse_anim_channels().
|
static |
Definition at line 4124 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_CLEAR, ACHANNEL_SETFLAG_EXTEND_RANGE, bAnimContext::ads, ADS_FILTER_ONLYSEL, AGRP_SELECTED, ANIM_anim_channels_select_set(), ANIM_set_active_channel(), animchannel_select_range(), ANIMTYPE_GROUP, BKE_pose_channel_find_name(), bActionGroup::channels, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, ED_pose_bone_select(), ED_pose_deselect_all(), FCURVE_SELECTED, bDopeSheet::filterflag, ListBase::first, bActionGroup::flag, FCurve::flag, FCurve::grp, GS, bAnimListElem::id, ID_OB, NA_SELECTED, bActionGroup::name, ID::name, ND_ANIMCHAN, FCurve::next, OB_ARMATURE, Object::pose, SEL_DESELECT, SELECT_EXTEND_RANGE, SELECT_INVERT, and Object::type.
Referenced by mouse_anim_channels().
|
static |
Definition at line 4451 of file anim_channels_edit.cc.
References bAnimListElem::data, MASK_ANIMF_EXPAND, NA_EDITED, and ND_ANIMCHAN.
Referenced by mouse_anim_channels().
|
static |
Definition at line 4464 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_CLEAR, ANIM_anim_channels_select_set(), bAnimListElem::data, MaskLayer::flag, MASK_LAYERFLAG_SELECT, NA_EDITED, ND_ANIMCHAN, and SELECT_INVERT.
Referenced by mouse_anim_channels().
|
static |
Definition at line 4320 of file anim_channels_edit.cc.
References ADT_NLA_SKEYS_COLLAPSED, bAnimListElem::data, AnimData::flag, NA_EDITED, and ND_ANIMCHAN.
Referenced by mouse_anim_channels().
|
static |
Definition at line 4032 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_CLEAR, ACHANNEL_SETFLAG_EXTEND_RANGE, Object::adt, ADT_UI_ACTIVE, ADT_UI_SELECTED, ANIM_anim_channels_select_set(), animchannel_select_range(), b, BASE_SELECTABLE, BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), bAnimListElem::data, AnimData::flag, Base::flag, LISTBASE_FOREACH, NA_SELECTED, ND_ANIMCHAN, Base::object, bAnimContext::scene, SELECT_EXTEND_RANGE, SELECT_INVERT, and bAnimContext::view_layer.
Referenced by mouse_anim_channels().
|
static |
Definition at line 3945 of file anim_channels_edit.cc.
References Scene::adt, ADT_UI_SELECTED, bAnimListElem::data, AnimData::flag, Scene::flag, NA_SELECTED, ND_ANIMCHAN, SCE_DS_SELECTED, and SELECT_INVERT.
Referenced by mouse_anim_channels().
|
static |
Definition at line 4300 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_CLEAR, ANIM_anim_channels_select_set(), bAnimListElem::data, KeyBlock::flag, KEYBLOCK_SEL, NA_SELECTED, ND_ANIMCHAN, and SELECT_INVERT.
Referenced by mouse_anim_channels().
|
static |
Find a Graph Editor area and set the context arguments accordingly.
Definition at line 5367 of file anim_channels_edit.cc.
References BKE_area_find_region_type(), CTX_wm_manager(), LISTBASE_FOREACH, RGN_TYPE_WINDOW, SPACE_GRAPH, and WM_window_get_active_screen().
Referenced by view_curve_in_graph_editor_exec().
|
static |
Definition at line 5412 of file anim_channels_edit.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), SpaceGraph::ads, ANIM_animdata_filter(), ANIM_animdata_freelist(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), bAnimContext::data, bAnimContext::datatype, bDopeSheet::filterflag, LISTBASE_FOREACH, blender::Span< T >::size(), bAnimContext::sl, SPACE_GRAPH, and SpaceLink::spacetype.
Referenced by calculate_selection_fcurve_bounds(), and view_curve_in_graph_editor_exec().
|
static |
Definition at line 5393 of file anim_channels_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_NODUPLIS, bAnimContext::data, bAnimContext::datatype, FCurve::flag, and LISTBASE_FOREACH.
Referenced by view_curve_in_graph_editor_exec().
| void ED_keymap_animchannels | ( | wmKeyConfig * | keyconf | ) |
Definition at line 5752 of file anim_channels_edit.cc.
References RGN_TYPE_WINDOW, SPACE_EMPTY, and WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
| void ED_operatortypes_animchannels | ( | ) |
Definition at line 5708 of file anim_channels_edit.cc.
References ANIM_OT_channel_select_keys(), ANIM_OT_channel_view_pick(), ANIM_OT_channels_bake(), ANIM_OT_channels_clean_empty(), ANIM_OT_channels_click(), ANIM_OT_channels_collapse(), ANIM_OT_channels_delete(), ANIM_OT_channels_editable_toggle(), ANIM_OT_channels_expand(), ANIM_OT_channels_fcurves_enable(), ANIM_OT_channels_group(), ANIM_OT_channels_move(), ANIM_OT_channels_rename(), ANIM_OT_channels_select_all(), ANIM_OT_channels_select_box(), ANIM_OT_channels_select_filter(), ANIM_OT_channels_setting_disable(), ANIM_OT_channels_setting_enable(), ANIM_OT_channels_setting_toggle(), ANIM_OT_channels_ungroup(), ANIM_OT_channels_view_selected(), ANIM_OT_view_curve_in_graph_editor(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
|
static |
Definition at line 171 of file anim_channels_edit.cc.
References ALE_ACT, ALE_ACTION_LAYERED, ALE_ACTION_SLOT, ALE_ALL, ALE_FCURVE, ALE_GPFRAME, ALE_GREASE_PENCIL_CEL, ALE_GREASE_PENCIL_DATA, ALE_GREASE_PENCIL_GROUP, ALE_GROUP, ALE_MASKLAY, ALE_NLASTRIP, ALE_NONE, ALE_OB, ALE_SCE, ANIM_nla_mapping_get(), bAnimListElem::data, bAnimListElem::datatype, get_gpencil_bounds(), get_grease_pencil_layer_bounds(), get_normalized_fcurve_bounds(), bAnimListElem::id, bAnimListElem::key_data, bAnimContext::scene, and bAnimContext::sl.
Referenced by ANIM_frame_channel_y_extents(), graphkeys_channel_view_pick_invoke(), and graphkeys_view_selected_channels_exec().
|
static |
Definition at line 5439 of file anim_channels_edit.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BKE_animadata_fcurve_find_by_rna_path(), BKE_animdata_from_id(), length(), ptr, RNA_path_from_ID_to_property(), RNA_property_array_check(), and RNA_property_array_length().
Referenced by calculate_selection_fcurve_bounds(), and view_curve_in_graph_editor_exec().
Definition at line 112 of file anim_channels_edit.cc.
References bGPDlayer::frames, LISTBASE_FOREACH, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by get_channel_bounds().
|
static |
Definition at line 138 of file anim_channels_edit.cc.
References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by get_channel_bounds().
|
static |
Definition at line 75 of file anim_channels_edit.cc.
References ANIM_get_normalization_flags(), ANIM_unit_mapping_get_factor(), BKE_fcurve_calc_bounds(), BKE_nla_tweakedit_remap(), BLI_rctf_size_y(), NLATIME_CONVERT_MAP, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by calculate_fcurve_bounds_and_unhide(), and get_channel_bounds().
Definition at line 4837 of file anim_channels_edit.cc.
References SCER_PRV_RANGE.
Referenced by calculate_fcurve_bounds_and_unhide(), graphkeys_channel_view_pick_invoke(), and graphkeys_view_selected_channels_exec().
|
static |
Definition at line 4949 of file anim_channels_edit.cc.
References add_region_padding(), ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), animchannels_channel_get(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, bAnimContext::area, BKE_area_find_region_type(), BLI_findlink(), bounds(), View2D::cur, bAnimContext::data, bAnimContext::datatype, get_channel_bounds(), get_view_range(), wmEvent::mval, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RGN_TYPE_WINDOW, RNA_boolean_get(), RPT_WARNING, bAnimContext::scene, SPACE_ACTION, bAnimContext::spacetype, UI_view2d_smooth_view(), ARegion::v2d, WM_operator_smooth_viewtx_get(), WM_report(), rctf::ymax, and rctf::ymin.
Referenced by ANIM_OT_channel_view_pick().
|
static |
Definition at line 4849 of file anim_channels_edit.cc.
References add_region_padding(), ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, bAnimContext::area, BKE_area_find_region_type(), BLI_rctf_union(), bounds(), View2D::cur, bAnimContext::data, bAnimContext::datatype, FLT_MAX, get_channel_bounds(), get_view_range(), LISTBASE_FOREACH, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RGN_TYPE_WINDOW, RNA_boolean_get(), RPT_WARNING, bAnimContext::scene, SPACE_ACTION, bAnimContext::spacetype, UI_view2d_smooth_view(), ARegion::v2d, WM_operator_smooth_viewtx_get(), WM_report(), rctf::ymax, and rctf::ymin.
Referenced by ANIM_OT_channels_view_selected().
|
static |
Definition at line 1661 of file anim_channels_edit.cc.
References AGRP_TEMP, BLI_movelisttolist(), BLI_remlink(), bAction::curves, bAction::groups, and LISTBASE_FOREACH.
Referenced by rearrange_action_channels().
|
static |
Definition at line 4484 of file anim_channels_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), animchannel_has_active_of_type(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_ACTION_SLOT, ANIMTYPE_DSARM, ANIMTYPE_DSCACHEFILE, ANIMTYPE_DSCAM, ANIMTYPE_DSCUR, ANIMTYPE_DSGPENCIL, ANIMTYPE_DSHAIR, ANIMTYPE_DSLAM, ANIMTYPE_DSLAT, ANIMTYPE_DSLINESTYLE, ANIMTYPE_DSMAT, ANIMTYPE_DSMBALL, ANIMTYPE_DSMCLIP, ANIMTYPE_DSMESH, ANIMTYPE_DSNTREE, ANIMTYPE_DSPART, ANIMTYPE_DSPOINTCLOUD, ANIMTYPE_DSSKEY, ANIMTYPE_DSSPK, ANIMTYPE_DSTEX, ANIMTYPE_DSVOLUME, ANIMTYPE_DSWOR, ANIMTYPE_FCURVE, ANIMTYPE_FILLACT_LAYERED, ANIMTYPE_FILLACTD, ANIMTYPE_GPDATABLOCK, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_DATABLOCK, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_GREASE_PENCIL_LAYER_GROUP, ANIMTYPE_GROUP, ANIMTYPE_MASKDATABLOCK, ANIMTYPE_MASKLAYER, ANIMTYPE_NLACONTROLS, ANIMTYPE_NLACURVE, ANIMTYPE_OBJECT, ANIMTYPE_SCENE, ANIMTYPE_SHAPEKEY, BLI_findlink(), click_select_channel_action_slot(), click_select_channel_dummy(), click_select_channel_fcurve(), click_select_channel_gpdatablock(), click_select_channel_gplayer(), click_select_channel_grease_pencil_datablock(), click_select_channel_grease_pencil_layer(), click_select_channel_grease_pencil_layer_group(), click_select_channel_group(), click_select_channel_maskdatablock(), click_select_channel_masklayer(), click_select_channel_nlacontrols(), click_select_channel_object(), click_select_channel_scene(), click_select_channel_shapekey(), CTX_wm_area(), bAnimContext::data, bAnimContext::datatype, ELEM, filter(), G, G_DEBUG, printf, SELECT_EXTEND_RANGE, SELECT_INVERT, SPACE_GRAPH, SPACE_NLA, and bAnimListElem::type.
Referenced by animchannels_mouseclick_invoke().
|
static |
Definition at line 1960 of file anim_channels_edit.cc.
References blender::animrig::legacy::action_treat_as_legacy(), ANIMTYPE_FCURVE, ANIMTYPE_GROUP, BLI_assert, BLI_freelistN(), EXPANDED_AGRP, bAction::groups, join_groups_action_temp(), LISTBASE_FOREACH, rearrange_animchannel_islands(), rearrange_animchannels_filter_visible(), rearrange_get_mode_func(), rearrange_layered_action_channel_groups(), rearrange_layered_action_fcurves(), and split_groups_action_temp().
Referenced by animchannels_rearrange_exec().
|
static |
Definition at line 1299 of file anim_channels_edit.cc.
References AGRP_TEMP, ANIMTYPE_FCURVE, ANIMTYPE_GPLAYER, ANIMTYPE_GROUP, ANIMTYPE_NLACURVE, ANIMTYPE_NLATRACK, BLI_addtail(), BLI_remlink(), tReorderChannelIsland::channels, bActionGroup::flag, tReorderChannelIsland::flag, MEM_callocN, printf, REORDER_ISLAND_HIDDEN, REORDER_ISLAND_SELECTED, REORDER_ISLAND_UNTOUCHABLE, SEL_AGRP, SEL_FCU, SEL_GPL, and SEL_NLT.
Referenced by rearrange_animchannel_islands().
Definition at line 1377 of file anim_channels_edit.cc.
References BLI_assert, BLI_freelinkN(), BLI_listbase_is_empty(), BLI_movelisttolist(), tReorderChannelIsland::channels, and tReorderChannelIsland::next.
Referenced by rearrange_animchannel_islands().
|
static |
Definition at line 1431 of file anim_channels_edit.cc.
References BLI_findptr(), BLI_listbase_is_empty(), tReorderChannelIsland::flag, Link::next, tReorderChannelIsland::next, offsetof, tReorderChannelIsland::prev, rearrange_animchannel_add_to_islands(), rearrange_animchannel_flatten_islands(), and REORDER_ISLAND_MOVED.
Referenced by rearrange_action_channels(), rearrange_driver_channels(), rearrange_gpencil_channels(), rearrange_nla_control_channels(), and rearrange_nla_tracks().
|
static |
Definition at line 1397 of file anim_channels_edit.cc.
References ANIM_animdata_filter(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_NLATRACK, BKE_nlatrack_is_nonlocal_in_liboverride(), BLI_freelinkN(), bAnimContext::data, bAnimContext::datatype, and LISTBASE_FOREACH_MUTABLE.
Referenced by rearrange_action_channels(), rearrange_driver_channels(), rearrange_gpencil_channels(), rearrange_layered_action_channel_groups(), rearrange_layered_action_fcurves(), rearrange_nla_control_channels(), and rearrange_nla_tracks().
|
static |
Definition at line 1557 of file anim_channels_edit.cc.
References ANIMTYPE_FCURVE, BLI_freelistN(), AnimData::drivers, EXPANDED_DRVD, rearrange_animchannel_islands(), rearrange_animchannels_filter_visible(), and rearrange_get_mode_func().
Referenced by animchannels_rearrange_exec().
|
static |
Definition at line 1263 of file anim_channels_edit.cc.
References REARRANGE_ANIMCHAN_BOTTOM, REARRANGE_ANIMCHAN_DOWN, REARRANGE_ANIMCHAN_TOP, REARRANGE_ANIMCHAN_UP, rearrange_island_bottom(), rearrange_island_down(), rearrange_island_top(), and rearrange_island_up().
Referenced by rearrange_action_channels(), rearrange_driver_channels(), rearrange_nla_control_channels(), and rearrange_nla_tracks().
|
static |
Definition at line 2109 of file anim_channels_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMFILTER_ANIMDATA, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_DSGPENCIL, ANIMTYPE_GPDATABLOCK, ANIMTYPE_GPLAYER, BLI_freelistN(), bAnimContext::data, bAnimContext::datatype, DEG_id_tag_update(), ELEM, filter(), bGPdata::flag, GP_DATA_EXPAND, bGPdata::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, LISTBASE_FOREACH, NA_EDITED, NC_GPENCIL, ND_DATA, rearrange_animchannel_islands(), rearrange_animchannels_filter_visible(), rearrange_gpencil_get_mode_func(), and WM_main_add_notifier().
Referenced by animchannels_rearrange_exec().
|
static |
Definition at line 1280 of file anim_channels_edit.cc.
References REARRANGE_ANIMCHAN_BOTTOM, REARRANGE_ANIMCHAN_DOWN, REARRANGE_ANIMCHAN_TOP, REARRANGE_ANIMCHAN_UP, rearrange_island_bottom(), rearrange_island_down(), rearrange_island_top(), and rearrange_island_up().
Referenced by rearrange_gpencil_channels().
|
static |
Definition at line 2057 of file anim_channels_edit.cc.
References ANIM_animdata_filter(), ANIMFILTER_DATA_VISIBLE, BLI_freelistN(), bAnimContext::data, bAnimContext::datatype, LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD, REARRANGE_ANIMCHAN_BOTTOM, REARRANGE_ANIMCHAN_DOWN, REARRANGE_ANIMCHAN_TOP, and REARRANGE_ANIMCHAN_UP.
Referenced by animchannels_rearrange_exec().
|
static |
Definition at line 1227 of file anim_channels_edit.cc.
References BLI_addtail(), BLI_insertlinkbefore(), BLI_remlink(), tReorderChannelIsland::flag, rearrange_island_ok(), and REORDER_ISLAND_UNTOUCHABLE.
Referenced by rearrange_get_mode_func(), and rearrange_gpencil_get_mode_func().
|
static |
Definition at line 1198 of file anim_channels_edit.cc.
References BLI_insertlinkafter(), BLI_remlink(), next, tReorderChannelIsland::next, rearrange_island_ok(), REORDER_ISLAND_HIDDEN, and REORDER_ISLAND_UNTOUCHABLE.
Referenced by rearrange_get_mode_func(), and rearrange_gpencil_get_mode_func().
|
static |
Definition at line 1145 of file anim_channels_edit.cc.
References tReorderChannelIsland::flag, REORDER_ISLAND_MOVED, REORDER_ISLAND_SELECTED, and REORDER_ISLAND_UNTOUCHABLE.
Referenced by rearrange_island_bottom(), rearrange_island_down(), rearrange_island_top(), and rearrange_island_up().
|
static |
Definition at line 1158 of file anim_channels_edit.cc.
References BLI_insertlinkbefore(), BLI_remlink(), and rearrange_island_ok().
Referenced by rearrange_get_mode_func(), and rearrange_gpencil_get_mode_func().
|
static |
Definition at line 1173 of file anim_channels_edit.cc.
References BLI_insertlinkbefore(), BLI_remlink(), tReorderChannelIsland::prev, rearrange_island_ok(), and REORDER_ISLAND_HIDDEN.
Referenced by rearrange_get_mode_func(), and rearrange_gpencil_get_mode_func().
|
static |
Move selected, visible channel groups in the channel list according to mode.
NOTE: the current implementation has quadratic performance with respect to the number of groups in a ChannelBag, due to both Span::first_index_try() and ChannelBag::channel_group_move() having linear performance. If this becomes a performance bottleneck in practice, we can create a dedicated method on ChannelBag for collectively moving a non-contiguous set of channel groups that works in linear time.
TODO: there's a fair amount of apparent repetition in this code and the code in rearrange_layered_action_fcurves(). In the time available when writing this, I (Nathan) wasn't able to figure out a satisfactory way to DRY that which didn't make the code significantly harder to follow. I suspect there is a good way to DRY this, and therefore this is probably worth revisiting when we have more time.
Definition at line 1705 of file anim_channels_edit.cc.
References ANIMTYPE_GROUP, BLI_assert, BLI_freelistN(), blender::animrig::ChannelBag::channel_group(), blender::animrig::ChannelBag::channel_group_move(), blender::animrig::ChannelBag::channel_groups(), LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD, REARRANGE_ANIMCHAN_BOTTOM, REARRANGE_ANIMCHAN_DOWN, REARRANGE_ANIMCHAN_TOP, REARRANGE_ANIMCHAN_UP, rearrange_animchannels_filter_visible(), and SEL_AGRP.
Referenced by rearrange_action_channels().
|
static |
Move selected, visible fcurves in the channel list according to mode.
NOTE: the current implementation has quadratic performance with respect to the number of fcurves in a ChannelBag, due to both Span::first_index_try() and ChannelBag::fcurve_move() having linear performance. If this becomes a performance bottleneck in practice, we can create a dedicated method on ChannelBag for collectively moving a non-contiguous set of fcurves that works in linear time.
TODO: there's a fair amount of apparent repetition in this code and the code in rearrange_layered_action_channel_groups(). In the time available when writing this, I (Nathan) wasn't able to figure out a satisfactory way to DRY that which didn't make the code significantly harder to follow. I suspect there is a good way to DRY this, and therefore this is probably worth revisiting when we have more time.
Definition at line 1815 of file anim_channels_edit.cc.
References ANIMTYPE_FCURVE, BLI_assert, bActionGroup::channel_bag, blender::animrig::ChannelBag::channel_groups(), blender::animrig::ChannelBag::fcurve(), blender::animrig::ChannelBag::fcurve_move(), bActionGroup::fcurve_range_length, bActionGroup::fcurve_range_start, blender::animrig::ChannelBag::fcurves(), FCurve::grp, LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD, REARRANGE_ANIMCHAN_BOTTOM, REARRANGE_ANIMCHAN_DOWN, REARRANGE_ANIMCHAN_TOP, REARRANGE_ANIMCHAN_UP, rearrange_animchannels_filter_visible(), SEL_AGRP, and SEL_FCU.
Referenced by rearrange_action_channels().
|
static |
Definition at line 2022 of file anim_channels_edit.cc.
References ADT_NLA_SKEYS_COLLAPSED, ANIMTYPE_NLACURVE, BLI_freelistN(), AnimData::flag, LISTBASE_FOREACH, AnimData::nla_tracks, rearrange_animchannel_islands(), rearrange_animchannels_filter_visible(), rearrange_get_mode_func(), and NlaStrip::strips.
Referenced by animchannels_rearrange_exec().
|
static |
Definition at line 1491 of file anim_channels_edit.cc.
References ANIMTYPE_NLATRACK, BKE_nlatrack_is_nonlocal_in_liboverride(), BLI_assert, BLI_freelistN(), BLI_listbase_is_empty(), ListBase::first, Object::id, ID_IS_OVERRIDE_LIBRARY, ListBase::last, NlaTrack::next, AnimData::nla_tracks, bAnimContext::obact, NlaTrack::prev, rearrange_animchannel_islands(), rearrange_animchannels_filter_visible(), and rearrange_get_mode_func().
Referenced by animchannels_rearrange_exec().
|
static |
Definition at line 3777 of file anim_channels_edit.cc.
References bAnimContext::ads, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_channel_get_typeinfo(), ANIMCONT_FCURVES, ANIMCONT_NLA, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_NLATRACK, BLI_findlink(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, ED_region_tag_redraw(), ELEM, bAnimListElem::fcurve_owner_id, filter(), NlaTrack::flag, G, G_DEBUG, bAnimListElem::id, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, bAnimChannelType::name_prop, NLATRACK_OVERRIDELIBRARY_LOCAL, printf, ptr, bAnimContext::region, bDopeSheet::renameIndex, and bAnimListElem::type.
Referenced by animchannels_rename_invoke().
|
static |
Definition at line 4716 of file anim_channels_edit.cc.
References ALE_FCURVE, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, FCurve::bezt, BLI_findlink(), bAnimContext::data, bAnimContext::datatype, bAnimListElem::datatype, ED_region_tag_redraw(), BezTriple::f1, BezTriple::f2, BezTriple::f3, filter(), G, G_DEBUG, bAnimListElem::key_data, LISTBASE_FOREACH, printf, bAnimContext::region, SELECT, and FCurve::totvert.
Referenced by animchannels_channel_select_keys_invoke().
|
static |
Definition at line 489 of file anim_channels_edit.cc.
References bAnimContext::ads, ADS_FILTER_ONLYSEL, AGRP_SELECTED, BKE_pose_channel_find_name(), ED_pose_bone_select(), bDopeSheet::filterflag, bActionGroup::flag, GS, bAnimListElem::id, ID_OB, bActionGroup::name, ID::name, OB_ARMATURE, Object::pose, and Object::type.
Referenced by anim_channels_select_set(), animchannel_select_range(), and box_select_anim_channels().
|
static |
Set/clear a particular flag (setting) for all selected + visible channels
| setting | the setting to modify. |
| mode | eAnimChannels_SetFlag. |
| onlysel | only selected channels get the flag set. |
TODO: enable a setting which turns flushing on/off?
Definition at line 2930 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_ADD, ACHANNEL_SETFLAG_CLEAR, ACHANNEL_SETFLAG_TOGGLE, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_channel_setting_get(), ANIM_channel_setting_set(), ANIM_flush_setting_anim_channels(), ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, BLI_freelistN(), bAnimContext::data, bAnimContext::datatype, filter(), LISTBASE_FOREACH, bAnimContext::regiontype, RGN_TYPE_CHANNELS, SPACE_GRAPH, bAnimContext::spacetype, and tag_update_animation_element().
Referenced by animchannels_collapse_exec(), animchannels_expand_exec(), and animchannels_setflag_exec().
|
static |
Definition at line 1588 of file anim_channels_edit.cc.
References AGRP_EXPANDED, AGRP_EXPANDED_G, AGRP_TEMP, BLI_addtail(), BLI_assert, bActionGroup::channels, bAction::curves, ListBase::first, bActionGroup::flag, bAction::groups, FCurve::grp, ListBase::last, LISTBASE_FOREACH, bActionGroup::name, FCurve::next, FCurve::prev, and STRNCPY.
Referenced by rearrange_action_channels().
|
static |
Definition at line 2569 of file anim_channels_edit.cc.
References AnimData::action, BKE_animdata_from_id(), DEG_id_tag_update(), bAction::id, bAnimListElem::id, and ID_RECALC_ANIMATION.
Referenced by animchannels_delete_exec(), and setflag_anim_channels().
|
static |
Update the selection state of selectable_thing based on selectmode.
This is basically the C++ variant of the macro ACHANNEL_SET_FLAG(thing, sel, selection_flag), except that this function doesn't require that the selectable thing has a member variable flag. Instead, it requires that it has two functions to query & set its selection state.
| selectable_thing | something with functions set_selected(bool) and bool is_selected(). |
| selectmode | the selection operation to perform. |
Definition at line 648 of file anim_channels_edit.cc.
References ACHANNEL_SETFLAG_ADD, ACHANNEL_SETFLAG_CLEAR, ACHANNEL_SETFLAG_EXTEND_RANGE, ACHANNEL_SETFLAG_INVERT, and ACHANNEL_SETFLAG_TOGGLE.
Referenced by anim_channels_select_set(), and box_select_anim_channels().
|
static |
Definition at line 5566 of file anim_channels_edit.cc.
References add_region_padding(), ANIM_animdata_get_context(), BLI_rctf_is_valid(), BLI_rctf_union(), bounds(), calculate_fcurve_bounds_and_unhide(), calculate_selection_fcurve_bounds(), context_find_graph_editor(), count_fcurves_hidden_by_filter(), CTX_wm_area(), CTX_wm_area_set(), CTX_wm_region(), CTX_wm_region_set(), CTX_wm_window(), CTX_wm_window_set(), deselect_all_fcurves(), ED_area_tag_redraw(), get_fcurves_of_property(), OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, PointerRNA::owner_id, wmOperator::ptr, RNA_boolean_get(), RPT_ERROR, RPT_WARNING, bAnimContext::scene, selection, bAnimContext::sl, UI_context_active_but_prop_get(), UI_context_copy_to_selected_list(), UI_view2d_smooth_view(), WM_operator_smooth_viewtx_get(), and WM_report().
Referenced by ANIM_OT_view_curve_in_graph_editor().
|
static |
Definition at line 5033 of file anim_channels_edit.cc.
Referenced by ANIM_OT_channels_bake().
|
static |
Definition at line 1117 of file anim_channels_edit.cc.
Referenced by ANIM_OT_channels_move().
|
static |
Definition at line 2904 of file anim_channels_edit.cc.
Referenced by ANIM_OT_channels_editable_toggle(), ANIM_OT_channels_setting_disable(), ANIM_OT_channels_setting_enable(), and ANIM_OT_channels_setting_toggle().
|
static |
Definition at line 2914 of file anim_channels_edit.cc.
Referenced by ANIM_OT_channels_editable_toggle(), ANIM_OT_channels_setting_disable(), ANIM_OT_channels_setting_enable(), and ANIM_OT_channels_setting_toggle().