84 const bool include_handles,
88 const bool fcu_selection_only =
false;
90 fcu, fcu_selection_only, include_handles, range, r_bounds);
101 r_bounds->
ymin = (r_bounds->
ymin + offset) * unit_fac;
102 r_bounds->
ymax = (r_bounds->
ymax + offset) * unit_fac;
104 const float min_height = 0.01f;
106 if (height < min_height) {
107 r_bounds->
ymin -= (min_height - height) / 2;
108 r_bounds->
ymax += (min_height - height) / 2;
116 bool found_start =
false;
132 r_bounds->
xmin = start_frame;
133 r_bounds->
xmax = end_frame;
141 const float range[2],
147 bool found_start =
false;
152 if (key < range[0]) {
155 if (key > range[1]) {
165 r_bounds->
xmin = start_frame;
166 r_bounds->
xmax = end_frame;
175 const float range[2],
176 const bool include_handles,
179 bool found_bounds =
false;
194 fcu, ac->
sl, ac->
scene, ale->
id, include_handles, range, r_bounds);
246 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
251 if (anim_data.is_empty()) {
256 for (ale = anim_data.first(); ale; ale = ale->
next) {
258 if (channel_type != ale->
type) {
343 switch (channel_type) {
391 if (ale && ale->
adt) {
495 const bool change_active)
525 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
537 const ListBaseT<bAnimListElem> anim_data)
655 switch (selectmode) {
657 selectable_thing.set_selected(!selectable_thing.is_selected());
660 selectable_thing.set_selected(
true);
673 selectable_thing.set_selected(
false);
679 const ListBaseT<bAnimListElem> anim_data,
691 Scene *scene =
static_cast<Scene *
>(ale.data);
847 const int matchLevel)
872 int prevLevel = matchLevel;
877 if (acf ==
nullptr) {
886 if (level == prevLevel) {
891 if (level > prevLevel) {
893 if (prevLevel == 0) {
918 const int matchLevel)
925 if (acf ==
nullptr) {
937 if (level > matchLevel) {
952 ListBaseT<bAnimListElem> *anim_data,
961 if (
ELEM(
nullptr, anim_data, anim_data->first())) {
972 if ((ale.data == ale_setting->
data) && (ale.type == ale_setting->
type)) {
976 if (ale.id == ale_setting->
id) {
982 if (match ==
nullptr) {
983 printf(
"ERROR: no channel matching the one changed was found\n");
989 if (acf ==
nullptr) {
990 printf(
"ERROR: no channel info for the changed channel\n");
1009 if (!window_region) {
1013 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1024 const bool include_handles =
false;
1032 rctf channel_bounds;
1034 ac, &ale, frame_range, include_handles, &channel_bounds);
1124 {0,
nullptr, 0,
nullptr,
nullptr},
1320 ListBaseT<T> *srcList,
1323 const bool is_hidden)
1327 bool is_sel =
false, is_untouchable =
false;
1359 "rearrange_animchannel_add_to_islands(): don't know how to handle channels of type %d\n",
1366 (island ==
nullptr) ||
1382 if (is_untouchable) {
1398 ListBaseT<T> *srcList)
1406 for (island =
islands->first(); island; island = isn) {
1419 ListBaseT<bAnimListElem> *anim_data_visible,
1424 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1433 if (ale.type != type) {
1450 *anim_data_visible = anim_data;
1459 ListBaseT<bAnimListElem> *anim_data_visible)
1461 ListBaseT<tReorderChannelIsland>
islands = {
nullptr,
nullptr};
1462 Link *channel, *chanNext =
nullptr;
1466 if (
list->is_empty()) {
1471 for (channel =
list->template first_as<Link>(); channel; channel = chanNext) {
1473 const bool is_hidden =
1475 chanNext = channel->
next;
1491 for (island = first; island; island = isn) {
1492 isn = (mode > 0) ? island->
prev : island->
next;
1495 if (rearrange_func(&
islands, island)) {
1522 ListBaseT<bAnimListElem> anim_data_visible = {
nullptr,
nullptr};
1530 if (rearrange_func ==
nullptr) {
1540 ListBaseT<NlaTrack> extracted_nonlocal_nla_tracks = {
nullptr,
nullptr};
1541 if (is_liboverride) {
1543 for (nla_track = adt->
nla_tracks.first(); nla_track !=
nullptr; nla_track = nla_track->
next) {
1548 if (nla_track !=
nullptr && nla_track->
prev !=
nullptr) {
1549 extracted_nonlocal_nla_tracks.first_ = adt->
nla_tracks.first_;
1550 extracted_nonlocal_nla_tracks.last_ = nla_track->
prev;
1553 nla_track->
prev =
nullptr;
1565 if (!extracted_nonlocal_nla_tracks.is_empty()) {
1567 extracted_nonlocal_nla_tracks.last()->next = adt->
nla_tracks.first();
1568 adt->
nla_tracks.first()->prev = extracted_nonlocal_nla_tracks.last();
1569 adt->
nla_tracks.first_ = extracted_nonlocal_nla_tracks.first_;
1573 anim_data_visible.free_no_destruct();
1591 ListBaseT<bAnimListElem> anim_data_visible = {
nullptr,
nullptr};
1593 if (rearrange_func ==
nullptr) {
1610 anim_data_visible.free_no_destruct();
1631 ListBaseT<bAnimListElem> anim_data_selected_visible = {
nullptr,
nullptr};
1635 int total_moved = 0;
1644 const int current_index = action.
slots().first_index_try(&slot);
1645 const int to_index = current_index - 1;
1663 for (
bAnimListElem &ale : anim_data_selected_visible.items_reversed()) {
1668 const int current_index = action.
slots().first_index_try(&slot);
1669 const int to_index = 0;
1670 if (current_index != to_index) {
1679 for (
bAnimListElem &ale : anim_data_selected_visible.items_reversed()) {
1684 const int current_index = action.
slots().first_index_try(&slot);
1685 const int to_index = current_index + 1;
1708 const int current_index = action.
slots().first_index_try(&slot);
1709 const int to_index = action.
slots().size() - 1;
1710 if (current_index != to_index) {
1719 anim_data_selected_visible.free_no_destruct();
1721 return total_moved > 0;
1746 ListBaseT<bAnimListElem> anim_data_visible = {
nullptr,
nullptr};
1758 if (ale.adt && &ale.adt->action->wrap() != &action) {
1767 const int group_index = bag.
channel_groups().first_index_try(group);
1768 const int to_index = group_index - 1;
1785 for (
bAnimListElem &ale : anim_data_visible.items_reversed()) {
1786 if (ale.adt && &ale.adt->action->wrap() != &action) {
1801 for (
bAnimListElem &ale : anim_data_visible.items_reversed()) {
1802 if (ale.adt && &ale.adt->action->wrap() != &action) {
1811 const int group_index = bag.
channel_groups().first_index_try(group);
1812 const int to_index = group_index + 1;
1830 if (ale.adt && &ale.adt->action->wrap() != &action) {
1845 anim_data_visible.free_no_destruct();
1869 ListBaseT<bAnimListElem> anim_data_visible = {
nullptr,
nullptr};
1886 FCurve *fcurve =
static_cast<FCurve *
>(fcurve_ale->data);
1888 return *fcurve->
grp;
1918 if (ale.adt && &ale.adt->action->wrap() != &action) {
1925 if (should_skip(*fcurve, group)) {
1930 const int fcurve_index = bag.
fcurves().first_index_try(fcurve);
1931 const int to_index = fcurve_index - 1;
1947 for (
bAnimListElem &ale : anim_data_visible.items_reversed()) {
1948 if (ale.adt && &ale.adt->action->wrap() != &action) {
1955 if (should_skip(*fcurve, group)) {
1966 for (
bAnimListElem &ale : anim_data_visible.items_reversed()) {
1967 if (ale.adt && &ale.adt->action->wrap() != &action) {
1974 if (should_skip(*fcurve, group)) {
1979 const int fcurve_index = bag.
fcurves().first_index_try(fcurve);
1980 const int to_index = fcurve_index + 1;
1999 if (ale.adt && &ale.adt->action->wrap() != &action) {
2006 if (should_skip(*fcurve, group)) {
2017 anim_data_visible.free_no_destruct();
2045 ListBaseT<bAnimListElem> anim_data_visible = {
nullptr,
nullptr};
2050 if (rearrange_func ==
nullptr) {
2071 anim_data_visible.free_no_destruct();
2083 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2094 if (
layer->is_selected()) {
2107 if (
layer->is_selected()) {
2113 if (
layer->is_selected()) {
2119 if (
layer->is_selected()) {
2132 anim_data.free_no_destruct();
2137 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2143 if (rearrange_func ==
nullptr) {
2159 ListBaseT<bAnimListElem> anim_data_visible = {
nullptr,
nullptr};
2175 anim_data_visible.free_no_destruct();
2213 printf(
"Mask does not supported for moving yet\n");
2220 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2259 printf(
"Animdata has no action\n");
2278 printf(
"Animdata has no action\n");
2299 ot->
name =
"Move Channels";
2300 ot->
idname =
"ANIM_OT_channels_move";
2301 ot->
description =
"Rearrange selected animation channels";
2376 if (act ==
nullptr) {
2381 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2386 if (anim_data.first_ ==
nullptr) {
2410 if (channelbag != last_channelbag) {
2411 last_channelbag = channelbag;
2446 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2472 ot->
name =
"Group Channels";
2473 ot->
idname =
"ANIM_OT_channels_group";
2474 ot->
description =
"Add selected F-Curves to a new group";
2490 "Name of newly created group");
2505 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2524 if (fcu->
grp ==
nullptr) {
2529 if (!ale.adt || !ale.adt->action) {
2547 ot->
name =
"Ungroup Channels";
2548 ot->
idname =
"ANIM_OT_channels_ungroup";
2549 ot->
description =
"Remove selected F-Curves from their current groups";
2572 if (adt !=
nullptr) {
2574 if (adt->
action !=
nullptr) {
2599 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2602 bool must_skip_groups =
false;
2603 bool has_skipped_group =
false;
2612 "fcurve_owner_id should be an Action");
2623 must_skip_groups =
true;
2628 if (must_skip_groups) {
2631 has_skipped_group =
true;
2639 if (adt ==
nullptr || adt->
action ==
nullptr) {
2661 for (
int i = 0; i < fcurve_range_length; i++) {
2721 return has_skipped_group;
2735 "Expecting only driver F-Curves in the drivers editor");
2758 printf(
"ERROR: Trying to delete NLA Control Curve for unknown property '%s'\n",
2759 fcu->rna_path().c_str());
2774 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2826 scene->
gpd =
nullptr;
2910 ot->
name =
"Delete Channels";
2911 ot->
idname =
"ANIM_OT_channels_delete";
2912 ot->
description =
"Delete all selected animation channels";
2934 {0,
nullptr, 0,
nullptr,
nullptr},
2942 {0,
nullptr, 0,
nullptr,
nullptr},
2959 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2960 ListBaseT<bAnimListElem> all_data = {
nullptr,
nullptr};
3030 all_data.free_no_destruct();
3077 ot->
name =
"Enable Channel Setting";
3078 ot->
idname =
"ANIM_OT_channels_setting_enable";
3079 ot->
description =
"Enable specified setting on all selected animation channels";
3103 ot->
name =
"Disable Channel Setting";
3104 ot->
idname =
"ANIM_OT_channels_setting_disable";
3105 ot->
description =
"Disable specified setting on all selected animation channels";
3129 ot->
name =
"Toggle Channel Setting";
3130 ot->
idname =
"ANIM_OT_channels_setting_toggle";
3131 ot->
description =
"Toggle specified setting on all selected animation channels";
3155 ot->
name =
"Toggle Channel Editability";
3156 ot->
idname =
"ANIM_OT_channels_editable_toggle";
3157 ot->
description =
"Toggle editability of selected channels";
3185 bool onlysel =
true;
3209 ot->
name =
"Expand Channels";
3210 ot->
idname =
"ANIM_OT_channels_expand";
3211 ot->
description =
"Expand (open) all selected expandable animation channels";
3222 ot->
srna,
"all",
true,
"All",
"Expand all channels (not just selected ones)");
3234 bool onlysel =
true;
3258 ot->
name =
"Collapse Channels";
3259 ot->
idname =
"ANIM_OT_channels_collapse";
3260 ot->
description =
"Collapse (close) all selected expandable animation channels";
3271 ot->
srna,
"all",
true,
"All",
"Collapse all channels (not just selected ones)");
3295 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
3314 bool nla_empty =
false;
3315 bool drivers_empty =
false;
3318 BLI_assert((
id !=
nullptr) && (adt !=
nullptr));
3333 action_empty =
true;
3350 if (nlt.
strips.first_ ==
nullptr) {
3358 drivers_empty = (adt->
drivers.first_ ==
nullptr);
3361 if (action_empty && nla_empty && drivers_empty) {
3379 ot->
name =
"Remove Empty Animation Data";
3380 ot->
idname =
"ANIM_OT_channels_clean_empty";
3381 ot->
description =
"Delete all empty animation data containers from visible data-blocks";
3419 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
3460 ot->
name =
"Revive Disabled F-Curves";
3461 ot->
idname =
"ANIM_OT_channels_fcurves_enable";
3462 ot->
description =
"Clear 'disabled' tag from all F-Curves to get broken F-Curves working again";
3483 if (area ==
nullptr) {
3519 ot->
name =
"Filter Channels";
3520 ot->
idname =
"ANIM_OT_channels_select_filter";
3522 "Start entering text which filters the set of channels shown to only include those with "
3574 ot->
name =
"Select All";
3575 ot->
idname =
"ANIM_OT_channels_select_all";
3576 ot->
description =
"Toggle selection of all animation channels";
3597 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
3634 if (ymax >= rectf.
ymin && ymin <= rectf.
ymax) {
3659 Slot *slot =
static_cast<Slot *
>(ale.data);
3723 short selectmode = 0;
3758 ot->
name =
"Box Select";
3759 ot->
idname =
"ANIM_OT_channels_select_box";
3760 ot->
description =
"Select all animation channels within the specified region";
3787 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
3791 bool success =
false;
3804 if (ale ==
nullptr) {
3807 printf(
"Error: animation channel (index = %d) not found in rename_anim_channels()\n",
3822 if (ale->
id !=
nullptr) {
3830 switch (ale->
type) {
3908 return channel_index;
3938 ot->
name =
"Rename Channel";
3939 ot->
idname =
"ANIM_OT_channels_rename";
3940 ot->
description =
"Rename animation channel under mouse";
3956 const short selectmode)
3982 bool is_active_found =
false;
3985 if (ale.type != type) {
3989 if (is_active_found) {
3995 return is_active_found;
4002 bool in_selection_range =
false;
4007 if (ale.type != cursor_elem->
type) {
4011 const bool is_cursor_elem = (ale.data == cursor_elem->
data);
4016 if (is_active_elem || is_cursor_elem) {
4019 in_selection_range = !in_selection_range;
4024 else if (in_selection_range) {
4032 if (is_active_elem && is_cursor_elem) {
4045 const short selectmode)
4078 if (
b.object->adt) {
4106 const short selectmode)
4108 if (ale->
adt ==
nullptr) {
4137 const short selectmode,
4155 ob =
reinterpret_cast<Object *
>(ale->
id);
4178 else if (selectmode == -1) {
4189 for (fcu = agrp->
channels.first(); fcu && fcu->
grp == agrp; fcu = fcu->
next) {
4238 const short selectmode,
4276 "fcurve_owner_id of an Action Slot should be an Action");
4284 switch (selectmode) {
4310 const short selectmode)
4313 Key *key =
reinterpret_cast<Key *
>(ale->
id);
4353 const short selectmode,
4424 const short selectmode,
4440 layer->set_selected(
true);
4470 const short selectmode)
4490 const int channel_index,
4493 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
4496 int notifierFlags = 0;
4510 if (ale ==
nullptr) {
4513 printf(
"Error: animation channel (index = %d) not found in mouse_anim_channels()\n",
4539 switch (ale->
type) {
4608 printf(
"Error: Invalid channel type in mouse_anim_channels()\n");
4617 return notifierFlags;
4635 int notifierFlags = 0;
4690 ot->
name =
"Mouse Click on Channels";
4691 ot->
idname =
"ANIM_OT_channels_click";
4692 ot->
description =
"Handle mouse clicks over animation channels";
4712 "Selection of active channel to clicked channel");
4722 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
4725 bool success =
false;
4738 if (ale ==
nullptr) {
4741 printf(
"Error: animation channel (index = %d) not found in rename_anim_channels()\n",
4756 success = (fcu !=
nullptr);
4761 if (fcu && fcu->
bezt) {
4771 if (fcu_inner !=
nullptr && fcu_inner->
bezt !=
nullptr) {
4772 for (i = 0, bezt = fcu_inner->
bezt; i < fcu_inner->totvert; i++, bezt++) {
4781 for (i = 0, bezt = fcu->
bezt; i < fcu->totvert; i++, bezt++) {
4821 ot->
name =
"Select Channel Keyframes";
4822 ot->
idname =
"ANIM_OT_channel_select_keys";
4823 ot->
description =
"Select all keyframes of channel under mouse";
4844 r_range[0] = scene->
r.
psfra;
4845 r_range[1] = scene->
r.
pefra;
4848 r_range[0] = scene->
r.
sfra;
4849 r_range[1] = scene->
r.
efra;
4863 if (!window_region) {
4867 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
4873 if (anim_data_length == 0) {
4890 bool valid_bounds =
false;
4892 rctf channel_bounds;
4894 &ac, &ale, range, include_handles, &channel_bounds);
4897 valid_bounds =
true;
4901 if (!valid_bounds) {
4930 ot->
name =
"Frame Selected Channels";
4931 ot->
idname =
"ANIM_OT_channels_view_selected";
4932 ot->
description =
"Reset viewable area to show the selected channels";
4944 "Include handles of keyframes when calculating extents");
4947 "use_preview_range",
4949 "Use Preview Range",
4950 "Ignore frames outside of the preview range");
4965 if (!window_region) {
4969 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
4978 if (ale ==
nullptr) {
4992 if (!found_bounds) {
5016 ot->
name =
"Frame Channel Under Cursor";
5017 ot->
idname =
"ANIM_OT_channel_view_pick";
5018 ot->
description =
"Reset viewable area to show the channel under the cursor";
5030 "Include handles of keyframes when calculating extents");
5033 "use_preview_range",
5035 "Use Preview Range",
5036 "Ignore frames outside of the preview range");
5046 {
BEZT_IPO_BEZ,
"BEZIER", 0,
"Bézier",
"New keys will be Bézier"},
5047 {
BEZT_IPO_LIN,
"LIN", 0,
"Linear",
"New keys will be linear"},
5048 {
BEZT_IPO_CONST,
"CONST", 0,
"Constant",
"New keys will be constant"},
5049 {0,
nullptr, 0,
nullptr,
nullptr},
5062 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
5068 if (anim_data_length == 0) {
5080 frame_range = {scene->
r.
sfra, scene->
r.
efra};
5087 if (rna_range[0] == 0 && rna_range[1] == 0) {
5092 frame_range = rna_range;
5095 frame_range[1] = std::max(frame_range[1], frame_range[0]);
5109 int2 nla_mapped_range = {
5115 if (!bake_modifiers) {
5124 fcu->
bezt, nla_mapped_range[1], fcu->
totvert, &replace);
5135 if (bake_modifiers) {
5139 int modifier_index = 0;
5141 modifier.flag = modifier_flags[modifier_index];
5146 for (
int i = 0; i < fcu->
totvert; i++) {
5148 if (key->
vec[1][0] < nla_mapped_range[0]) {
5151 if (key->
vec[1][0] > nla_mapped_range[1]) {
5152 fcu->
bezt[
max_ii(i - 1, 0)].
ipo = segment_end_interpolation;
5155 key->
ipo = interpolation_type;
5170 if (
STREQ(prop_id,
"range")) {
5179 ot->
name =
"Bake Channels";
5180 ot->
idname =
"ANIM_OT_channels_bake";
5182 "Create keyframes following the current shape of F-Curves of selected channels";
5195 "If enabled, the scene start and end frame will be used to determine the bake range");
5205 "The custom range in which to create new keys. Only used when not using the scene range",
5215 "At which interval to add keys",
5220 "remove_outside_range",
5222 "Remove Outside Range",
5223 "Removes keys outside the given range, leaving only the newly baked");
5226 "interpolation_type",
5229 "Interpolation Type",
5230 "Choose the interpolation type with which new keys will be added");
5236 "Bake Modifiers into keyframes and delete them after");
5256 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
5262 if (anim_data_length == 0) {
5273 bAction *owning_action =
reinterpret_cast<bAction *
>(ale.fcurve_owner_id);
5274 slots.
append({
reinterpret_cast<Slot *
>(ale.data), owning_action});
5278 if (slots.
size() == 0) {
5287 if (slots.
size() == 1) {
5290 target_action = &
action_add(*bmain, actname);
5299 for (std::pair<Slot *, bAction *> &slot_data : slots) {
5300 Action &source_action = slot_data.second->wrap();
5301 move_slot(*bmain, *slot_data.first, source_action, *target_action);
5329 ot->
name =
"Move Slots to new Action";
5330 ot->
idname =
"ANIM_OT_slot_channels_move_to_new_action";
5331 ot->
description =
"Move the selected slots into a newly created action";
5358 int created_actions = 0;
5367 move_slot(*bmain, *slot, *action, target_action);
5373 "Separated %s into %i new actions",
5387 if (!active_object) {
5402 ot->
name =
"Separate Slots";
5403 ot->
idname =
"ANIM_OT_separate_slots";
5405 "Move all slots of the action on the active object into newly created, separate actions. "
5406 "All users of those slots will be reassigned to the new actions. The current action won't "
5407 "be deleted but will be empty and might end up having zero users";
5452 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
5471 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
5483 filtered_fcurves.
add(fcu,
true);
5486 int hidden_fcurve_count = fcurves.
size();
5487 for (
FCurve *fcu : fcurves) {
5488 if (filtered_fcurves.
contains(fcu)) {
5489 hidden_fcurve_count--;
5493 return hidden_fcurve_count;
5500 if (anim_data ==
nullptr) {
5509 for (
int i = 0; i <
length; i++) {
5511 anim_data, path->c_str(), i,
nullptr,
nullptr);
5512 if (fcurve !=
nullptr) {
5519 anim_data, path->c_str(),
index,
nullptr,
nullptr);
5520 if (fcurve !=
nullptr) {
5543 if (anim_data ==
nullptr) {
5547 float frame_range[2];
5549 float mapped_frame_range[2];
5555 const bool include_handles =
false;
5557 for (
FCurve *fcurve : fcurves) {
5561 fcurve, space_link, scene,
id, include_handles, mapped_frame_range, &fcu_bounds);
5576 const bool whole_array,
5577 int *r_filtered_fcurve_count)
5585 for (
const PointerRNA &selected : selection) {
5586 ID *selected_id = selected.owner_id;
5594 &selected, id_to_prop_path.
c_str(), &resolved_ptr, &resolved_prop);
5600 resolved_ptr = selected;
5601 resolved_prop = prop;
5604 selected_id, &resolved_ptr, resolved_prop, whole_array,
index);
5635 } wm_context_prev = {
nullptr}, wm_context_temp = {
nullptr};
5638 std::optional<std::string> id_to_prop_path;
5640 C, &button_ptr, button_prop, &selection, &path_from_id, &id_to_prop_path);
5643 C, &wm_context_temp.win, &wm_context_temp.area, &wm_context_temp.region))
5675 int filtered_fcurve_count = 0;
5676 if (selected_list_success && !selection.
is_empty()) {
5680 id_to_prop_path.value_or(
""),
5683 &filtered_fcurve_count);
5691 button_ptr.
owner_id, &button_ptr, button_prop, whole_array,
index);
5699 if (filtered_fcurve_count > 0) {
5702 "One or more F-Curves are not visible due to filter settings");
5710 ARegion *region = wm_context_temp.region;
5711 ScrArea *area = wm_context_temp.area;
5733 ot->
name =
"View In Graph Editor";
5734 ot->
idname =
"ANIM_OT_view_curve_in_graph_editor";
5735 ot->
description =
"Frame the property under the cursor in the Graph Editor";
5744 "Frame the whole array property instead of only the index under the cursor");
5750 "Hides all F-Curves other than the ones being framed");
Functions and classes to work with Actions.
Functions for backward compatibility with the legacy Action API.
Functions to work with AnimData.
Functions to modify FCurves.
Blender kernel action and pose functionality.
Low-level operations for grease pencil.
#define SNPRINTF_UTF8(dst, format,...)
#define ID_IS_EDITABLE(_id)
#define ID_IS_OVERRIDE_LIBRARY(_id)
Object is a sort of wrapper for general info.
#define NLATRACK_FIRST_TOP(ac)
#define NLATRACK_STEP(snla)
#define ACHANNEL_SET_FLAG(channel, smode, sflag)
#define EXPANDED_DRVD(adt)
#define NLATRACK_NAMEWIDTH
Read Blender memory allocation and freeing.
#define UI_MARKER_MARGIN_Y
#define V2D_SCROLL_HANDLE_HEIGHT
#define UI_TIME_SCRUB_MARGIN_Y
#define ND_SPACE_PROPERTIES
#define BLI_assert_unreachable()
#define UNUSED_VARS_NDEBUG(...)
#define BLI_assert_msg(a, msg)
bool add(const Key &key, const Value &value)
bool contains(const Key &key) const
constexpr int64_t size() const
constexpr const char * c_str() const
void append(const T &value)
void slot_active_set(slot_handle_t slot_handle)
Span< const Slot * > slots() const
const Slot * slot(int64_t index) const
void slot_move_to_index(Slot &slot, int to_slot_index)
bool slot_remove(Slot &slot_to_remove)
Layer & layer_add(std::optional< StringRefNull > name)
const FCurve * fcurve(int64_t index) const
void fcurve_move_to_index(FCurve &fcurve, int to_fcurve_index)
bool fcurve_assign_to_channel_group(FCurve &fcurve, bActionGroup &to_group)
Span< const bActionGroup * > channel_groups() const
bActionGroup & channel_group_create(StringRefNull name)
bool fcurve_remove(FCurve &fcurve_to_remove)
const bActionGroup * channel_group(int64_t index) const
Span< const FCurve * > fcurves() const
void channel_group_move_to_index(bActionGroup &group, int to_group_index)
void set_selected(bool selected)
void set_expanded(bool expanded)
constexpr bool is_empty() const
VecBase< float, D > step(VecOp< float, D >, VecOp< float, D >) RET
float length(VecOp< float, D >) RET
bool action_fcurve_remove(Action &action, FCurve &fcu)
void animdata_fcurve_delete(AnimData *adt, FCurve *fcu)
Action & action_add(Main &bmain, StringRefNull name)
const animrig::Channelbag * channelbag_for_action_slot(const Action &action, slot_handle_t slot_handle)
void bake_fcurve(FCurve *fcu, int2 range, float step, BakeCurveRemove remove_existing)
Span< FCurve * > fcurves_for_action_slot(Action &action, slot_handle_t slot_handle)
Action * get_action(ID &animated_id)
void move_slot(Main &bmain, Slot &slot, Action &from_action, Action &to_action)
void base_select(Base *base, eObjectSelect_Mode mode)
void base_activate_with_mode_exit_if_needed(bContext *C, Base *base)
BLI_INLINE Texture * wrap(MTLTexture *texture)
bool context_copy_to_selected_list(bContext *C, PointerRNA *ptr, PropertyRNA *prop, Vector< PointerRNA > *r_lb, bool *r_use_path_from_id, std::optional< std::string > *r_path)
void view2d_region_to_view(const View2D *v2d, float x, float y, float *r_view_x, float *r_view_y) ATTR_NONNULL()
void view2d_smooth_view(const bContext *C, ARegion *region, const rctf *cur, int smooth_viewtx)
void view2d_listview_view_to_cell(float columnwidth, float rowheight, float startx, float starty, float viewx, float viewy, int *r_column, int *r_row)
Button * context_active_but_prop_get(const bContext *C, PointerRNA *r_ptr, PropertyRNA **r_prop, int *r_index)
void WM_main_add_notifier(uint type, void *reference)
static wmOperatorStatus animchannels_rename_invoke(bContext *C, wmOperator *, const wmEvent *event)
void * BLI_findptr(const ListBase *listbase, const void *ptr, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
static rctf calculate_fcurve_bounds_and_unhide(SpaceLink *space_link, Scene *scene, ID *id, const Span< FCurve * > fcurves)
int RNA_property_array_length(PointerRNA *ptr, PropertyRNA *prop)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))
static void rearrange_animchannel_flatten_islands(ListBaseT< tReorderChannelIsland > *islands, ListBaseT< T > *srcList)
@ GP_LAYER_TREE_NODE_SELECT
void BKE_annotations_layer_active_set(struct bGPdata *gpd, struct bGPDlayer *active)
wmOperatorStatus WM_menu_invoke(bContext *C, wmOperator *op, const wmEvent *)
static void ANIM_OT_channels_select_box(wmOperatorType *ot)
static wmOperatorStatus graphkeys_channel_view_pick_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static bool channel_view_poll(bContext *C)
ScrArea * CTX_wm_area(const bContext *C)
short ANIM_channel_setting_get(bAnimContext *ac, bAnimListElem *ale, eAnimChannel_Settings setting)
@ NLATRACK_OVERRIDELIBRARY_LOCAL
int RNA_enum_get(PointerRNA *ptr, const char *name)
static Vector< FCurve * > get_fcurves_of_property(ID *id, PointerRNA *ptr, PropertyRNA *prop, const bool whole_array, const int index)
static wmOperatorStatus animchannels_expand_exec(bContext *C, wmOperator *op)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
static void rearrange_nla_control_channels(bAnimContext *ac, AnimData *adt, eRearrangeAnimChan_Mode mode)
static void ANIM_OT_separate_slots(wmOperatorType *ot)
float BKE_nla_tweakedit_remap(AnimData *adt, float cframe, eNlaTime_ConvertModes mode)
bool ED_operator_graphedit_active(bContext *C)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
static void anim_channels_select_set(bAnimContext *ac, const ListBaseT< bAnimListElem > anim_data, eAnimChannels_SetFlag sel)
const bAnimChannelType * ANIM_channel_get_typeinfo(const bAnimListElem *ale)
static void rearrange_grease_pencil_channels(bAnimContext *ac, eRearrangeAnimChan_Mode mode)
void RNA_property_update(bContext *C, PointerRNA *ptr, PropertyRNA *prop)
wmOperatorStatus WM_gesture_box_invoke(bContext *C, wmOperator *op, const wmEvent *event)
wmOperatorStatus WM_operator_flag_only_pass_through_on_press(wmOperatorStatus retval, const wmEvent *event)
static void ANIM_OT_channels_move(wmOperatorType *ot)
float ANIM_UI_get_channel_name_width()
static wmOperatorStatus animchannels_rearrange_exec(bContext *C, wmOperator *op)
void BKE_id_free_us(Main *bmain, void *idv) ATTR_NONNULL()
static int click_select_channel_scene(bAnimListElem *ale, const short selectmode)
static bool rearrange_animchannel_islands(ListBaseT< T > *list, AnimChanRearrangeFp rearrange_func, eRearrangeAnimChan_Mode mode, eAnim_ChannelType type, ListBaseT< bAnimListElem > *anim_data_visible)
ListBaseT< TimeMarker > * ED_context_get_markers(const bContext *C)
void ANIM_anim_channels_select_set(bAnimContext *ac, eAnimChannels_SetFlag sel)
static void ANIM_OT_channels_expand(wmOperatorType *ot)
std::optional< std::string > RNA_path_from_ID_to_property(const PointerRNA *ptr, PropertyRNA *prop)
static wmOperatorStatus animchannels_selectall_exec(bContext *C, wmOperator *op)
static wmOperatorStatus view_curve_in_graph_editor_exec(bContext *C, wmOperator *op)
void ANIM_set_active_channel(bAnimContext *ac, void *data, eAnimCont_Types datatype, eAnimFilter_Flags filter, void *channel_data, eAnim_ChannelType channel_type)
static void ANIM_OT_channels_clean_empty(wmOperatorType *ot)
const char * RNA_property_identifier(const PropertyRNA *prop)
static int click_select_channel_action_slot(bAnimContext *ac, bAnimListElem *ale, short selectmode)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
static void anim_flush_channel_setting_down(bAnimContext *ac, const eAnimChannel_Settings setting, const eAnimChannels_SetFlag mode, bAnimListElem *const match, const int matchLevel)
void CTX_wm_window_set(bContext *C, wmWindow *win)
static void tag_update_animation_element(bAnimListElem *ale)
bool ANIM_animdata_get_context(const bContext *C, bAnimContext *ac)
int WM_operator_smooth_viewtx_get(const wmOperator *op)
@ ADT_NLA_SKEYS_COLLAPSED
float ANIM_nla_tweakedit_remap(bAnimListElem *ale, const float cframe, const eNlaTime_ConvertModes mode)
static void ANIM_OT_channel_select_keys(wmOperatorType *ot)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
static void ANIM_OT_channels_select_all(wmOperatorType *ot)
static wmOperatorStatus graphkeys_view_selected_channels_exec(bContext *C, wmOperator *op)
static int click_select_channel_nlacontrols(bAnimListElem *ale)
void WM_operator_properties_gesture_box_select(wmOperatorType *ot)
void void void BLI_movelisttolist(ListBase *dst, ListBase *src) ATTR_NONNULL(1
static void select_pchan_for_action_group(bAnimContext *ac, bActionGroup *agrp, bAnimListElem *ale, const bool change_active)
static bool slot_channels_move_to_new_action_poll(bContext *C)
wmWindow * CTX_wm_window(const bContext *C)
static wmOperatorStatus separate_slots_exec(bContext *C, wmOperator *op)
static bool separate_slots_poll(bContext *C)
@ ACHANNEL_SETFLAG_INVERT
@ ACHANNEL_SETFLAG_EXTEND_RANGE
@ ACHANNEL_SETFLAG_TOGGLE
BLI_INLINE bool BLI_listbase_is_empty(const ListBase *lb)
MINLINE int max_ii(int a, int b)
void ED_keymap_animchannels(wmKeyConfig *keyconf)
static wmOperatorStatus animchannels_setflag_exec(bContext *C, wmOperator *op)
bool BKE_animdata_id_is_animated(const ID *id)
static void get_view_range(Scene *scene, const bool use_preview_range, float r_range[2])
static bool animchannels_grouping_poll(bContext *C)
@ ANIMTYPE_GREASE_PENCIL_LAYER_GROUP
@ ANIMTYPE_GREASE_PENCIL_DATABLOCK
@ ANIMTYPE_GREASE_PENCIL_LAYER
@ ANIMTYPE_FILLACT_LAYERED
@ ANIMTYPE_SPECIALDATA__UNUSED
static void rearrange_layered_action_channel_groups(bAnimContext *ac, animrig::Action &action, const eRearrangeAnimChan_Mode mode)
void BLI_rctf_scale(rctf *rect, float scale)
void ED_region_tag_redraw(ARegion *region)
bAction * ANIM_active_action_from_area(const Main &bmain, Scene *scene, ViewLayer *view_layer, const ScrArea *area, ID **r_action_user)
static wmOperatorStatus animchannels_delete_exec(bContext *C, wmOperator *)
@ REORDER_ISLAND_SELECTED
@ REORDER_ISLAND_UNTOUCHABLE
static wmOperatorStatus animchannels_clean_empty_exec(bContext *C, wmOperator *)
void ANIM_animdata_update(bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data)
ViewLayer * CTX_data_view_layer(const bContext *C)
void WM_operator_properties_select_all(wmOperatorType *ot)
static void rearrange_driver_channels(bAnimContext *ac, AnimData *adt, eRearrangeAnimChan_Mode mode)
static void ANIM_OT_view_curve_in_graph_editor(wmOperatorType *ot)
static bool rearrange_island_down(ListBaseT< tReorderChannelIsland > *list, tReorderChannelIsland *island)
static void anim_flush_channel_setting_up(bAnimContext *ac, const eAnimChannel_Settings setting, const eAnimChannels_SetFlag mode, bAnimListElem *const match, const int matchLevel)
static wmOperatorStatus channels_bake_exec(bContext *C, wmOperator *op)
bool RNA_property_array_check(PropertyRNA *prop)
static void ANIM_OT_channel_view_pick(wmOperatorType *ot)
bool ED_operator_action_active(bContext *C)
void BKE_annotations_layer_delete(struct bGPdata *gpd, struct bGPDlayer *gpl)
static int mouse_anim_channels(bContext *C, bAnimContext *ac, const int channel_index, short selectmode)
static void deselect_all_fcurves(bAnimContext *ac, const bool hide)
static void setflag_anim_channels(bAnimContext *ac, eAnimChannel_Settings setting, eAnimChannels_SetFlag mode, bool onlysel, bool flush)
bool BLI_rctf_is_valid(const struct rctf *rect)
static void ANIM_OT_channels_delete(wmOperatorType *ot)
AnimData * BKE_animdata_from_id(const ID *id)
static void rearrange_nla_tracks(bAnimContext *ac, AnimData *adt, eRearrangeAnimChan_Mode mode)
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
bool BKE_nlatrack_is_nonlocal_in_liboverride(const ID *id, const NlaTrack *nlt)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
@ GREASE_PENCIL_ANIM_CHANNEL_EXPANDED
float ANIM_UI_get_first_channel_top(View2D *v2d)
@ ACHANNEL_SETTING_EXPAND
@ ACHANNEL_SETTING_PROTECT
@ ACHANNEL_SETTING_VISIBLE
@ ACHANNEL_SETTING_ALWAYS_VISIBLE
@ ACHANNEL_SETTING_SELECT
bool BKE_nlastrip_controlcurve_remove(NlaStrip *strip, FCurve *fcurve)
@ ALE_GREASE_PENCIL_GROUP
void RNA_int_set_array(PointerRNA *ptr, const char *name, const int *values)
void CTX_wm_operator_poll_msg_set(bContext *C, const char *msg)
static int count_fcurves_hidden_by_filter(bAnimContext *ac, const Span< FCurve * > fcurves)
void DEG_id_tag_update_ex(Main *bmain, ID *id, unsigned int flags)
VecBase< int32_t, 2 > int2
static int click_select_channel_masklayer(bAnimContext *ac, bAnimListElem *ale, const short selectmode)
size_t ANIM_animdata_filter(bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data, const eAnimFilter_Flags filter_mode, void *data, const eAnimCont_Types datatype)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
@ ANIMFILTER_LIST_VISIBLE
@ ANIMFILTER_DATA_VISIBLE
@ ANIMFILTER_CURVE_VISIBLE
@ ANIMFILTER_LIST_CHANNELS
bool BKE_fcurve_calc_bounds(const FCurve *fcu, bool selected_keys_only, bool include_handles, const float frame_range[2], rctf *r_bounds)
static void ANIM_OT_channels_select_filter(wmOperatorType *ot)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
static const EnumPropertyItem channel_bake_key_options[]
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_report(ReportList *reports, eReportType type, const char *message)
BMesh const char void * data
void BLI_insertlinkafter(ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1)
void ANIM_channel_setting_set(bAnimContext *ac, bAnimListElem *ale, eAnimChannel_Settings setting, eAnimChannels_SetFlag mode)
void BLI_rctf_pad_y(struct rctf *rect, float boundary_size, float pad_min, float pad_max)
void RNA_int_get_array(PointerRNA *ptr, const char *name, int *values)
static bool get_channel_bounds(bAnimContext *ac, bAnimListElem *ale, const float range[2], const bool include_handles, rctf *r_bounds)
bool ANIM_is_active_channel(bAnimListElem *ale)
void BKE_animdata_free(ID *id, bool do_id_user)
bool ED_pose_deselect_all(Object *ob, int select_mode, const bool ignore_visibility)
BLI_INLINE float BLI_rctf_size_y(const struct rctf *rct)
wmWindowManager * CTX_wm_manager(const bContext *C)
static bool animchannels_select_filter_poll(bContext *C)
static const EnumPropertyItem prop_animchannel_setflag_types[]
static eAnimChannels_SetFlag anim_channels_selection_flag_for_toggle(const ListBaseT< bAnimListElem > anim_data)
static int click_select_channel_dummy(bAnimContext *ac, bAnimListElem *ale, const short selectmode)
static bool animchannels_enable_poll(bContext *C)
static wmOperatorStatus animchannels_box_select_exec(bContext *C, wmOperator *op)
static int click_select_channel_grease_pencil_layer(bContext *C, bAnimContext *ac, bAnimListElem *ale, const short selectmode, const int)
void WM_operator_properties_border_to_rcti(wmOperator *op, rcti *r_rect)
static int click_select_channel_shapekey(bContext *C, bAnimContext *ac, bAnimListElem *ale, const short selectmode)
FCurve * BKE_animadata_fcurve_find_by_rna_path(AnimData *animdata, const char *rna_path, const int rna_index, bAction **r_action, bool *r_driven)
void ED_pose_bone_select(Object *ob, bPoseChannel *pchan, bool select, bool change_active)
void BLI_freelinkN(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
static wmOperatorStatus animchannels_ungroup_exec(bContext *C, wmOperator *)
static bool animedit_poll_channels_active(bContext *C)
wmOperatorStatus WM_operator_props_popup(bContext *C, wmOperator *op, const wmEvent *)
static bool channels_bake_poll_property(const bContext *, wmOperator *op, const PropertyRNA *prop)
static void ANIM_OT_channels_view_selected(wmOperatorType *ot)
static bool rename_anim_channels(bAnimContext *ac, int channel_index)
static bool context_find_graph_editor(bContext *C, wmWindow **r_win, ScrArea **r_area, ARegion **r_region)
static int click_select_channel_gplayer(bContext *C, bAnimContext *ac, bAnimListElem *ale, const short selectmode, const int filter)
@ REARRANGE_ANIMCHAN_DOWN
@ REARRANGE_ANIMCHAN_BOTTOM
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
static rctf calculate_selection_fcurve_bounds(bAnimContext *ac, Span< PointerRNA > selection, PropertyRNA *prop, const StringRefNull id_to_prop_path, const int index, const bool whole_array, int *r_filtered_fcurve_count)
static bool animedit_poll_channels_nla_tweakmode_off(bContext *C)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
void ED_region_toggle_hidden(bContext *C, ARegion *region)
static int click_select_channel_grease_pencil_datablock(bAnimListElem *ale)
static wmOperatorStatus animchannels_group_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static void animchannels_group_channels(bAnimContext *ac, bAnimListElem *adt_ref, const char name[])
static int click_select_channel_grease_pencil_layer_group(bContext *C, bAnimListElem *ale)
static bool select_anim_channel_keys(bAnimContext *ac, int channel_index, bool extend)
void free_fmodifiers(ListBaseT< FModifier > *modifiers)
static void ANIM_OT_channels_bake(wmOperatorType *ot)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
static wmOperatorStatus animchannels_collapse_exec(bContext *C, wmOperator *op)
wmMsgBus * CTX_wm_message_bus(const bContext *C)
void BLI_insertlinkbefore(ListBase *listbase, void *vnextlink, void *vnewlink) ATTR_NONNULL(1)
bool(*)(ListBaseT< tReorderChannelIsland > *list, tReorderChannelIsland *island) AnimChanRearrangeFp
void BLI_rctf_union(struct rctf *rct_a, const struct rctf *rct_b)
static const EnumPropertyItem prop_animchannel_rearrange_types[]
static AnimChanRearrangeFp rearrange_get_mode_func(eRearrangeAnimChan_Mode mode)
void ED_anim_ale_fcurve_delete(bAnimContext &ac, bAnimListElem &ale)
static int click_select_channel_object(bContext *C, bAnimContext *ac, bAnimListElem *ale, const short selectmode)
void ED_operatortypes_animchannels()
static wmOperatorStatus animchannels_select_filter_invoke(bContext *C, wmOperator *, const wmEvent *)
ARegion * BKE_area_find_region_type(const ScrArea *area, int region_type)
SpaceLink * CTX_wm_space_data(const bContext *C)
static void add_region_padding(bContext *C, ARegion *region, rctf *bounds)
static void ANIM_OT_channels_setting_disable(wmOperatorType *ot)
wmOperatorStatus WM_gesture_box_modal(bContext *C, wmOperator *op, const wmEvent *event)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
static void ANIM_OT_channels_fcurves_enable(wmOperatorType *ot)
static AnimChanRearrangeFp rearrange_gpencil_get_mode_func(eRearrangeAnimChan_Mode mode)
static bool rearrange_layered_action_slots(bAnimContext *ac, const eRearrangeAnimChan_Mode mode)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BKE_annotations_free_data(struct bGPdata *gpd, bool free_all)
Main * CTX_data_main(const bContext *C)
void ANIM_flush_setting_anim_channels(bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data, bAnimListElem *ale_setting, eAnimChannel_Settings setting, eAnimChannels_SetFlag mode)
static bool animchannels_delete_containers(const bContext *C, bAnimContext *ac)
static int animchannels_channel_get(bAnimContext *ac, const int mval[2])
static void ANIM_OT_slot_channels_move_to_new_action(wmOperatorType *ot)
static void ANIM_OT_channels_group(wmOperatorType *ot)
static void rearrange_animchannels_filter_visible(ListBaseT< bAnimListElem > *anim_data_visible, bAnimContext *ac, const eAnim_ChannelType type, const eAnimFilter_Flags additional_filters=eAnimFilter_Flags{})
void ANIM_animdata_freelist(ListBaseT< bAnimListElem > *anim_data)
static void ANIM_OT_channels_click(wmOperatorType *ot)
float ANIM_unit_mapping_get_factor(Scene *scene, ID *id, FCurve *fcu, short flag, float *r_offset)
@ ID_RECALC_ANIMATION_NO_FLUSH
ID_Type GS(const char *name)
static void ANIM_OT_channels_setting_enable(wmOperatorType *ot)
static int click_select_channel_maskdatablock(bAnimListElem *ale)
void WM_gesture_box_cancel(bContext *C, wmOperator *op)
static bool rearrange_island_ok(tReorderChannelIsland *island)
PropertyRNA * RNA_def_int_array(StructOrFunctionRNA *cont_, const char *identifier, const int len, const int *default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
static bool rearrange_island_up(ListBaseT< tReorderChannelIsland > *list, tReorderChannelIsland *island)
static bool animchannel_has_active_of_type(bAnimContext *ac, const eAnim_ChannelType type)
static void ANIM_OT_channels_collapse(wmOperatorType *ot)
static void rearrange_gpencil_channels(bAnimContext *ac, eRearrangeAnimChan_Mode mode)
static wmOperatorStatus animchannels_group_exec(bContext *C, wmOperator *op)
static void rearrange_action_channels(bAnimContext *ac, bAction *act, eRearrangeAnimChan_Mode mode)
void DEG_relations_tag_update(Main *bmain)
Scene * CTX_data_scene(const bContext *C)
void CTX_wm_region_set(bContext *C, ARegion *region)
int BKE_fcurve_bezt_binarysearch_index(const BezTriple array[], float frame, int arraylen, bool *r_replace)
static const EnumPropertyItem prop_animchannel_settings_types[]
static void ANIM_OT_channels_rename(wmOperatorType *ot)
static wmOperatorStatus animchannels_mouseclick_invoke(bContext *C, wmOperator *op, const wmEvent *event)
std::string RNA_string_get(PointerRNA *ptr, const char *name)
static void templated_selection_state_update(T &selectable_thing, const eAnimChannels_SetFlag selectmode)
static bool get_normalized_fcurve_bounds(FCurve *fcu, SpaceLink *space_link, Scene *scene, ID *id, const bool include_handles, const float range[2], rctf *r_bounds)
static int click_select_channel_fcurve(bAnimContext *ac, bAnimListElem *ale, const short selectmode, const int filter)
static ListBaseT< bAnimListElem > anim_channels_for_selection(bAnimContext *ac)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
static wmOperatorStatus slot_channels_move_to_new_action_exec(bContext *C, wmOperator *op)
static bool rearrange_island_bottom(ListBaseT< tReorderChannelIsland > *list, tReorderChannelIsland *island)
void ED_region_activate_rna_prop(bContext *C, ARegion *region, const void *data, StringRefNull prop_name)
static void rearrange_layered_action_fcurves(bAnimContext *ac, animrig::Action &action, const eRearrangeAnimChan_Mode mode)
static bool get_gpencil_bounds(bGPDlayer *gpl, const float range[2], rctf *r_bounds)
bScreen * WM_window_get_active_screen(const wmWindow *win)
MINLINE int min_ii(int a, int b)
bool RNA_path_resolve_property(const PointerRNA *ptr, const char *path, PointerRNA *r_ptr, PropertyRNA **r_prop)
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
Object * CTX_data_active_object(const bContext *C)
static wmOperatorStatus animchannels_channel_select_keys_invoke(bContext *C, wmOperator *op, const wmEvent *event)
ARegion * CTX_wm_region(const bContext *C)
static void ANIM_OT_channels_ungroup(wmOperatorType *ot)
static bool get_grease_pencil_layer_bounds(const GreasePencilLayer *gplayer, const float range[2], rctf *r_bounds)
float ANIM_UI_get_channel_step()
void BKE_mask_layer_remove(Mask *mask, MaskLayer *masklay)
ListBaseT< Base > * BKE_view_layer_object_bases_get(ViewLayer *view_layer)
float RNA_float_get(PointerRNA *ptr, const char *name)
bPoseChannel * BKE_pose_channel_find_name(const bPose *pose, const char *name)
static wmOperatorStatus animchannels_enable_exec(bContext *C, wmOperator *)
void ANIM_anim_channels_select_toggle(bAnimContext *ac)
static void animchannel_select_range(bAnimContext *ac, bAnimListElem *cursor_elem)
static void box_select_anim_channels(bAnimContext *ac, const rcti &rect, short selectmode)
static void ANIM_OT_channels_editable_toggle(wmOperatorType *ot)
static void rearrange_animchannel_add_to_islands(ListBaseT< tReorderChannelIsland > *islands, ListBaseT< T > *srcList, Link *channel, eAnim_ChannelType type, const bool is_hidden)
static int click_select_channel_group(bAnimContext *ac, bAnimListElem *ale, const short selectmode, const int filter)
static void ANIM_OT_channels_setting_toggle(wmOperatorType *ot)
void ED_area_tag_redraw(ScrArea *area)
void ANIM_frame_channel_y_extents(bContext *C, bAnimContext *ac)
short ANIM_get_normalization_flags(SpaceLink *space_link)
void CTX_wm_area_set(bContext *C, ScrArea *area)
static bool rearrange_island_top(ListBaseT< tReorderChannelIsland > *list, tReorderChannelIsland *island)
ListBaseT< FCurve > drivers
ListBaseT< NlaTrack > nla_tracks
eBezTriple_Interpolation ipo
ListBaseT< FModifier > modifiers
ListBaseT< KeyBlock > block
ListBaseT< FCurve > fcurves
ListBaseT< NlaStrip > strips
ListBaseT< FCurve > channels
struct ActionChannelbag * channelbag
bool(*) name_prop(bAnimListElem *ale, PointerRNA *r_ptr, PropertyRNA **r_prop)
short(*) get_offset(bAnimContext *ac, bAnimListElem *ale)
struct blender::bAnimContext::@354357007254244122245111034311231000121111260015 filters
eDopeSheet_FilterFlag filterflag
ListBaseT< bGPDframe > frames
ListBaseT< bGPDlayer > layers
ListBaseT< struct ScrArea > areabase
ListBaseT< bAnimListElem > channels
tReorderChannelIsland * next
tReorderChannelIsland * prev
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll_property(const bContext *C, wmOperator *op, const PropertyRNA *prop) ATTR_WARN_UNUSED_RESULT
void(*) cancel(bContext *C, wmOperator *op)
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) modal(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports
#define WM_msg_publish_rna_prop(mbus, id_, data_, type_, prop_)