42#include "RNA_prototypes.hh"
68 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
109 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
112 const bool use_upper_stack_evaluation =
RNA_boolean_get(op->
ptr,
"use_upper_stack_evaluation");
126 if (anim_data.is_empty()) {
139 if (use_upper_stack_evaluation) {
167 if (ac.
scene && ok) {
188 ot->
name =
"Enter Tweak Mode";
189 ot->
idname =
"NLA_OT_tweakmode_enter";
191 "Enter tweaking mode for the action referenced by the active strip to edit its keyframes";
205 "Enable 'solo' on the NLA Track containing the active strip, "
206 "to edit it without seeing the effects of the NLA stack");
210 "use_upper_stack_evaluation",
212 "Evaluate Upper Stack",
213 "In tweak mode, display the effects of the tracks above the tweak strip");
225 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
233 if (anim_data.is_empty()) {
298 ot->
name =
"Exit Tweak Mode";
299 ot->
idname =
"NLA_OT_tweakmode_exit";
300 ot->
description =
"Exit tweaking mode for the action referenced by the active strip";
314 "Disable 'solo' on any of the NLA Tracks after exiting tweak mode "
315 "to get things back to normal");
330 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
331 bool found_bounds =
false;
340 *
max = -999999999.0f;
343 if (anim_data.first_) {
365 if (found_bounds ==
false) {
394 if (ac.
scene ==
nullptr) {
416 ot->
name =
"Set Preview Range to Selected";
417 ot->
idname =
"NLA_OT_previewrange_set";
418 ot->
description =
"Set Preview Range based on extents of selected strips";
443 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
506 if (only_sel ==
false) {
519 float ymid = (ymax - ymin) / 2.0f + ymin;
553 ot->
name =
"Frame All";
554 ot->
idname =
"NLA_OT_view_all";
555 ot->
description =
"Reset viewable area to show full strips range";
568 ot->
name =
"Frame Selected";
569 ot->
idname =
"NLA_OT_view_selected";
570 ot->
description =
"Reset viewable area to show selected strips range";
596 ot->
name =
"Go to Current Frame";
597 ot->
idname =
"NLA_OT_view_frame";
598 ot->
description =
"Move the view to the current frame";
637 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
643 "No active track(s) to add strip to, select an existing track or add one before "
657 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
671 if (act ==
nullptr) {
701 "Could not add action '%s' as it cannot be used relative to ID-blocks of type '%s'",
710 "Expecting the owner of an ALE to be the animated ID, not the Action");
711 ID &animated_id = *ale.id;
714 strip->
end += (cfra - strip->
start);
751 ot->
name =
"Add Action Strip";
752 ot->
idname =
"NLA_OT_actionclip_add";
754 "Add an Action-Clip strip (i.e. an NLA Strip referencing an Action) to the active track";
784 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
812 for (; s1 && s2; s1 = s2, s2 = s2->next) {
836 strip = MEM_new<NlaStrip>(
"NlaStrip");
851 strip->
end = s2->start;
882 "Needs at least a pair of adjacent selected strips with a gap between them");
889 ot->
name =
"Add Transition";
890 ot->
idname =
"NLA_OT_transition_add";
891 ot->
description =
"Add a transition strip between two adjacent selected strips";
912 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
920 int cfra = scene->
r.
cfra;
946 strip->
start += cfra;
979 ot->
name =
"Add Sound Clip";
980 ot->
idname =
"NLA_OT_soundclip_add";
981 ot->
description =
"Add a strip for controlling when speaker plays its sound clip";
1004 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1054 ot->
name =
"Add Meta-Strips";
1055 ot->
idname =
"NLA_OT_meta_add";
1056 ot->
description =
"Add new meta-strips incorporating the selected strips";
1078 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1119 ot->
name =
"Remove Meta-Strips";
1120 ot->
idname =
"NLA_OT_meta_remove";
1121 ot->
description =
"Separate out the strips held by the selected meta-strips";
1144 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1173 for (strip = nlt->
strips.first(); strip; strip = next) {
1233 ot->
name =
"Duplicate Strips";
1234 ot->
idname =
"NLA_OT_duplicate";
1235 ot->
description =
"Duplicate selected NLA-Strips, adding the new strips to new track(s)";
1250 "When duplicating strips, assign new copies of the actions they use");
1265 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1287 for (strip = nlt->
strips.first(); strip; strip = nstrip) {
1288 nstrip = strip->
next;
1294 if (ale.adt && ale.adt->actstrip == strip) {
1303 nstrip = nstrip->
next;
1331 ot->
name =
"Delete Strips";
1332 ot->
idname =
"NLA_OT_delete";
1360 float splitframe, splitaframe;
1365 if ((cfra > strip->
start) && (cfra < strip->end)) {
1380 splitframe = strip->
start + (
len / 2.0f);
1385 splitaframe = strip->
actend;
1401 strip->
end = splitframe;
1402 nstrip->
start = splitframe;
1404 if ((splitaframe > strip->
actstart) && (splitaframe < strip->actend)) {
1406 strip->
actend = splitaframe;
1433 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1456 for (strip = nlt->
strips.first(); strip; strip = next) {
1462 switch (strip->
type) {
1494 ot->
name =
"Split Strips";
1495 ot->
idname =
"NLA_OT_split";
1496 ot->
description =
"Split selected strips at their midpoints";
1520 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1563 ot->
name =
"Toggle Muting";
1564 ot->
idname =
"NLA_OT_mute_toggle";
1565 ot->
description =
"Mute or un-mute selected strips";
1587 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1603 NlaStrip *strip, *stripN =
nullptr;
1604 NlaStrip *area =
nullptr, *sb =
nullptr;
1619 if (nlt->
strips.is_empty() ==
false) {
1633 for (strip = nlt->
strips.first(); strip; strip = stripN) {
1634 stripN = strip->
next;
1638 if (area ==
nullptr) {
1642 else if (sb ==
nullptr) {
1658 "Too many clusters of strips selected in NLA Track (%s): needs exactly 2 to be selected",
1661 else if (area ==
nullptr) {
1665 else if (sb ==
nullptr) {
1670 "Too few clusters of strips selected in NLA Track (%s): needs exactly 2 to be selected",
1674 float nsa[2], nsb[2];
1684 nsa[1] = sb->start + (area->
end - area->
start);
1686 nsb[0] = area->
start;
1687 nsb[1] = area->
start + (sb->end - sb->start);
1694 area->
start = nsa[0];
1704 if (nsb[1] > nsa[0]) {
1707 "Cannot swap selected strips because they will overlap each other in their "
1714 "Cannot swap selected strips as they will not be able to fit in their new places");
1719 "Cannot swap '%s' and '%s' as one or both will not be able to fit in their "
1752 ot->
name =
"Swap Strips";
1753 ot->
idname =
"NLA_OT_swap";
1754 ot->
description =
"Swap order of selected strips within tracks";
1776 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1799 if (nltn ==
nullptr) {
1811 for (
NlaStrip *strip = nlt->
strips.first(); strip; strip = stripn) {
1812 stripn = strip->
next;
1843 ot->
name =
"Move Strips Up";
1844 ot->
idname =
"NLA_OT_move_up";
1845 ot->
description =
"Move selected strips up a track if there's room";
1867 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1890 if (nltp ==
nullptr) {
1902 for (
NlaStrip *strip = nlt->
strips.first(); strip; strip = stripn) {
1903 stripn = strip->
next;
1934 ot->
name =
"Move Strips Down";
1935 ot->
idname =
"NLA_OT_move_down";
1936 ot->
description =
"Move selected strips down a track if there's room";
1958 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1993 if (strip.
act ==
nullptr) {
2018 ot->
name =
"Sync Action Length";
2019 ot->
idname =
"NLA_OT_action_sync_length";
2021 "Synchronize the length of the referenced Action with the length used in the strip";
2034 "Active Strip Only",
2035 "Only sync the active length for the active strip");
2051 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2052 bool copied =
false;
2074 if (strip.act ==
nullptr) {
2087 strip.act = new_action;
2119 IFACE_(
"Make Selected Strips Single-User"),
2120 IFACE_(
"Linked actions will be duplicated for each selected strip."),
2131 ot->
name =
"Make Single User";
2132 ot->
idname =
"NLA_OT_make_single_user";
2133 ot->
description =
"Make linked action local to each strip";
2173 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2174 bool copied =
false;
2221 for (
FCurve *fcurve : fcurves) {
2272 ot->
name =
"Apply Scale";
2273 ot->
idname =
"NLA_OT_apply_scale";
2274 ot->
description =
"Apply scaling of selected strips to their referenced Actions";
2296 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2338 ot->
name =
"Clear Scale";
2339 ot->
idname =
"NLA_OT_clear_scale";
2340 ot->
description =
"Reset scaling of selected strips";
2366 {0,
nullptr, 0,
nullptr,
nullptr},
2373 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2391 secf =
float(scene->frames_per_second());
2393 bool any_added =
false;
2397 ListBaseT<NlaStrip> tmp_strips = {
nullptr,
nullptr};
2411 for (
NlaStrip *strip = nlt->
strips.first(); strip; strip = stripn) {
2412 stripn = strip->
next;
2418 start = strip->start;
2427 strip->start =
floorf(start + 0.5f);
2430 strip->start =
floorf(start / secf + 0.5f) * secf;
2436 strip->start = start;
2441 strip->end = strip->start + (end - start);
2453 for (
NlaStrip *strip = tmp_strips.first(); strip; strip = stripn) {
2454 stripn = strip->
next;
2501 ot->
name =
"Snap Strips";
2502 ot->
idname =
"NLA_OT_snap";
2503 ot->
description =
"Move start of strips to specified time";
2544 if (fmi ==
nullptr) {
2567 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2622 "Modifier could not be added to (%s : %s) (see console for details)",
2645 ot->
name =
"Add F-Modifier";
2646 ot->
idname =
"NLA_OT_fmodifier_add";
2647 ot->
description =
"Add F-Modifier to the active/selected NLA-Strips";
2666 "Only add a F-Modifier of the specified type to the active strip");
2679 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2726 ot->
name =
"Copy F-Modifiers";
2727 ot->
idname =
"NLA_OT_fmodifier_copy";
2728 ot->
description =
"Copy the F-Modifier(s) of the active NLA-Strip";
2743 "Copy all the F-Modifiers, instead of just the active one");
2756 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2819 ot->
name =
"Paste F-Modifiers";
2820 ot->
idname =
"NLA_OT_fmodifier_paste";
2821 ot->
description =
"Add copied F-Modifiers to the selected NLA-Strips";
2832 ot->
srna,
"only_active",
true,
"Only Active",
"Only paste F-Modifiers on active strip");
2840 "Replace existing F-Modifiers, instead of just appending to the end of the existing list");
Functions and classes to work with Actions.
Functions for backward compatibility with the legacy Action API.
#define BLT_I18NCONTEXT_ID_ACTION
#define ID_IS_EDITABLE(_id)
#define ID_REAL_USERS(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 NLATRACK_HEIGHT(snla)
Read Blender memory allocation and freeing.
#define BLI_assert_msg(a, msg)
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
Span< FCurve * > fcurves_for_action_slot(Action &action, slot_handle_t slot_handle)
void view2d_center_set(View2D *v2d, float x, float y)
void view2d_center_get(const View2D *v2d, float *r_x, float *r_y)
void view2d_sync(bScreen *screen, ScrArea *area, View2D *v2dcur, int flag)
float nlastrip_get_frame(NlaStrip *strip, float cframe, short mode)
void WM_main_add_notifier(uint type, void *reference)
static wmOperatorStatus nlaedit_duplicate_invoke(bContext *C, wmOperator *op, const wmEvent *)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void RNA_def_enum_funcs(PropertyRNA *prop, EnumPropertyItemFunc itemfunc)
wmOperatorStatus WM_menu_invoke(bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus nlaedit_toggle_mute_exec(bContext *C, wmOperator *)
void NLA_OT_delete(wmOperatorType *ot)
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
ScrArea * CTX_wm_area(const bContext *C)
short ANIM_channel_setting_get(bAnimContext *ac, bAnimListElem *ale, eAnimChannel_Settings setting)
static void nlaedit_split_strip_actclip(Main *bmain, AnimData *adt, NlaTrack *nlt, NlaStrip *strip, float cfra)
int RNA_enum_get(PointerRNA *ptr, const char *name)
const EnumPropertyItem rna_enum_fmodifier_type_items[]
void NLA_OT_transition_add(wmOperatorType *ot)
void NLA_OT_previewrange_set(wmOperatorType *ot)
const bAnimChannelType * ANIM_channel_get_typeinfo(const bAnimListElem *ale)
bool ED_operator_region_nla_active(bContext *C)
bool ED_operator_nla_active(bContext *C)
static wmOperatorStatus nlaedit_move_up_exec(bContext *C, wmOperator *)
static wmOperatorStatus nlaedit_make_single_user_invoke(bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus nlaedit_viewsel_exec(bContext *C, wmOperator *)
void BKE_nlameta_flush_transforms(NlaStrip *mstrip)
void ED_nla_postop_refresh(bAnimContext *ac)
MINLINE int round_fl_to_int(float a)
void NLA_OT_fmodifier_paste(wmOperatorType *ot)
NlaStrip * BKE_nla_add_soundstrip(Main *bmain, Scene *scene, Speaker *speaker)
@ NLASTRIP_FLAG_SYNC_LENGTH
@ NLASTRIP_FLAG_AUTO_BLENDS
@ NLASTRIP_FLAG_TEMP_META
void BKE_nlatrack_set_active(ListBaseT< NlaTrack > *tracks, NlaTrack *nlt)
void NLA_OT_move_down(wmOperatorType *ot)
bool BKE_nlatrack_add_strip(NlaTrack *nlt, NlaStrip *strip, bool is_liboverride)
bool ANIM_animdata_get_context(const bContext *C, bAnimContext *ac)
int WM_operator_smooth_viewtx_get(const wmOperator *op)
static wmOperatorStatus nlaedit_add_meta_exec(bContext *C, wmOperator *)
@ ADT_NLA_EVAL_UPPER_TRACKS
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
NlaTrack * BKE_nlatrack_find_tweaked(AnimData *adt)
static wmOperatorStatus nlaedit_duplicate_exec(bContext *C, wmOperator *op)
void NLA_OT_mute_toggle(wmOperatorType *ot)
FModifier * add_fmodifier(ListBaseT< FModifier > *modifiers, int type, FCurve *owner_fcu)
static int nlaedit_get_editable_tracks(bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data)
void NLA_OT_split(wmOperatorType *ot)
void NLA_OT_view_all(wmOperatorType *ot)
static const EnumPropertyItem prop_nlaedit_snap_types[]
void NLA_OT_actionclip_add(wmOperatorType *ot)
static wmOperatorStatus nlaedit_add_transition_exec(bContext *C, wmOperator *op)
void BKE_nlastrip_validate_name(AnimData *adt, NlaStrip *strip)
int RNA_enum_from_value(const EnumPropertyItem *item, const int value)
void NLA_OT_meta_add(wmOperatorType *ot)
short ANIM_fcurve_keyframes_loop(KeyframeEditData *ked, FCurve *fcu, KeyframeEditFunc key_ok, KeyframeEditFunc key_cb, FcuEditFunc fcu_cb)
void ANIM_animdata_update(bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data)
void NLA_OT_tweakmode_exit(wmOperatorType *ot)
const EnumPropertyItem * RNA_action_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
static wmOperatorStatus nlaedit_move_down_exec(bContext *C, wmOperator *)
void BKE_nla_tweakmode_exit(OwnedAnimData owned_adt)
void NLA_OT_fmodifier_copy(wmOperatorType *ot)
static wmOperatorStatus nlaedit_enable_tweakmode_exec(bContext *C, wmOperator *op)
static void nlaedit_split_strip_meta(NlaTrack *nlt, NlaStrip *strip)
bool nlaop_poll_tweakmode_on(bContext *C)
@ NLAEDIT_SNAP_NEAREST_FRAME
@ NLAEDIT_SNAP_NEAREST_SECOND
@ NLAEDIT_SNAP_NEAREST_MARKER
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
NlaStrip * BKE_nlastrip_new(bAction *act, ID &animated_id)
bool BKE_nlatrack_is_nonlocal_in_liboverride(const ID *id, const NlaTrack *nlt)
void WM_operator_properties_confirm_or_exec(wmOperatorType *ot)
static void get_nlastrip_extents(bAnimContext *ac, float *min, float *max, const bool only_sel)
void NLA_OT_snap(wmOperatorType *ot)
@ ACHANNEL_SETTING_SELECT
BLI_INLINE int BLI_rcti_size_y(const struct rcti *rct)
static wmOperatorStatus nlaedit_viewall(bContext *C, const bool only_sel)
void ANIM_center_frame(bContext *C, int smooth_viewtx)
void BKE_nla_validate_state(AnimData *adt)
size_t ANIM_animdata_filter(bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data, const eAnimFilter_Flags filter_mode, void *data, const eAnimCont_Types datatype)
static wmOperatorStatus nlaedit_sync_actlen_exec(bContext *C, wmOperator *op)
void NLA_OT_move_up(wmOperatorType *ot)
static wmOperatorStatus nlaedit_split_exec(bContext *C, wmOperator *)
@ ANIMFILTER_LIST_VISIBLE
@ ANIMFILTER_DATA_VISIBLE
@ ANIMFILTER_LIST_CHANNELS
bool nlaedit_disable_tweakmode(bAnimContext *ac, bool do_solo)
void BKE_fcurve_handles_recalc(FCurve &fcu)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void DEG_id_tag_update(ID *id, unsigned int flags)
bool nlaedit_add_tracks_empty(bAnimContext *ac)
void BKE_report(ReportList *reports, eReportType type, const char *message)
void BLI_insertlinkafter(ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1)
NlaStrip * BKE_nlastrip_copy(Main *bmain, NlaStrip *strip, bool use_same_action, int flag)
bool BKE_nlastrips_has_space(ListBaseT< NlaStrip > *strips, float start, float end)
static wmOperatorStatus nla_fmodifier_paste_exec(bContext *C, wmOperator *op)
static wmOperatorStatus nlaedit_apply_scale_exec(bContext *C, wmOperator *)
@ NLASTRIP_TYPE_TRANSITION
static wmOperatorStatus nlaedit_viewall_exec(bContext *C, wmOperator *)
NlaTrack * BKE_nlatrack_new_tail(ListBaseT< NlaTrack > *nla_tracks, const bool is_liboverride)
void NLA_OT_tweakmode_enter(wmOperatorType *ot)
void NLA_OT_fmodifier_add(wmOperatorType *ot)
BLI_INLINE bool BLI_listbase_count_is_equal_to(const ListBase *listbase, const int count_cmp)
void NLA_OT_soundclip_add(wmOperatorType *ot)
void BKE_nlatrack_solo_toggle(AnimData *adt, NlaTrack *nlt)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
bool ANIM_fmodifiers_paste_from_buf(ListBaseT< FModifier > *modifiers, bool replace, FCurve *curve)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
static wmOperatorStatus nlaedit_disable_tweakmode_exec(bContext *C, wmOperator *op)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
wmOperatorStatus WM_operator_confirm_ex(bContext *C, wmOperator *op, const char *title, const char *message, const char *confirm_text, ui::AlertIcon icon, bool cancel_default)
const EnumPropertyItem rna_enum_dummy_NULL_items[]
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
void RNA_float_set(PointerRNA *ptr, const char *name, float value)
void BKE_nlastrip_recalculate_bounds_sync_action(NlaStrip *strip)
void NLA_OT_swap(wmOperatorType *ot)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
void BKE_nlastrips_clear_metas(ListBaseT< NlaStrip > *strips, bool only_sel, bool only_temp)
static wmOperatorStatus nla_fmodifier_copy_exec(bContext *C, wmOperator *op)
static wmOperatorStatus nlaedit_previewrange_exec(bContext *C, wmOperator *)
void NLA_OT_apply_scale(wmOperatorType *ot)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
NlaTrack * BKE_nlatrack_new_after(ListBaseT< NlaTrack > *nla_tracks, NlaTrack *prev, bool is_liboverride)
void NLA_OT_make_single_user(wmOperatorType *ot)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
Main * CTX_data_main(const bContext *C)
void ANIM_fmodifiers_copybuf_free()
BLI_INLINE float BLI_rctf_size_x(const struct rctf *rct)
static wmOperatorStatus nlaedit_make_single_user_exec(bContext *C, wmOperator *)
void NLA_OT_duplicate(wmOperatorType *ot)
int ED_markers_find_nearest_marker_time(ListBaseT< TimeMarker > *markers, float x)
void ANIM_animdata_freelist(ListBaseT< bAnimListElem > *anim_data)
static wmOperatorStatus nlaedit_add_actionclip_invoke(bContext *C, wmOperator *op, const wmEvent *event)
ID_Type GS(const char *name)
void NLA_OT_view_frame(wmOperatorType *ot)
void NLA_OT_meta_remove(wmOperatorType *ot)
void BKE_nlatrack_remove_strip(NlaTrack *track, NlaStrip *strip)
static const EnumPropertyItem * nla_fmodifier_itemf(bContext *C, PointerRNA *, PropertyRNA *, bool *r_free)
void NLA_OT_action_sync_length(wmOperatorType *ot)
static wmOperatorStatus nla_fmodifier_add_exec(bContext *C, wmOperator *op)
wmOperatorStatus WM_enum_search_invoke(bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus nlaedit_clear_scale_exec(bContext *C, wmOperator *)
void DEG_relations_tag_update(Main *bmain)
bool ANIM_fmodifiers_copy_to_buf(ListBaseT< FModifier > *modifiers, bool active)
bool nlaop_poll_tweakmode_off(bContext *C)
bScreen * CTX_wm_screen(const bContext *C)
static wmOperatorStatus nlaedit_viewframe_exec(bContext *C, wmOperator *op)
void BKE_nlastrips_make_metas(ListBaseT< NlaStrip > *strips, bool is_temp)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
bool BKE_nlatrack_has_space(NlaTrack *nlt, float start, float end)
static wmOperatorStatus nlaedit_add_sound_exec(bContext *C, wmOperator *)
static bool nla_tracks_get_selected_extents(bAnimContext *ac, float *r_min, float *r_max)
static short bezt_apply_nlamapping(KeyframeEditData *ked, BezTriple *bezt)
static wmOperatorStatus nlaedit_add_actionclip_exec(bContext *C, wmOperator *op)
ID * BKE_id_copy(Main *bmain, const ID *id)
static wmOperatorStatus nlaedit_delete_exec(bContext *C, wmOperator *)
void NLA_OT_clear_scale(wmOperatorType *ot)
void NLA_OT_view_selected(wmOperatorType *ot)
static wmOperatorStatus nlaedit_remove_meta_exec(bContext *C, wmOperator *)
void set_active_fmodifier(ListBaseT< FModifier > *modifiers, FModifier *fcm)
void BKE_nlastrips_clear_metastrip(ListBaseT< NlaStrip > *strips, NlaStrip *strip)
void BKE_nlastrip_remove_and_free(ListBaseT< NlaStrip > *strips, NlaStrip *strip, const bool do_id_user)
const FModifierTypeInfo * get_fmodifier_typeinfo(int type)
bool BKE_nla_tweakmode_enter(OwnedAnimData owned_adt)
static wmOperatorStatus nlaedit_swap_exec(bContext *C, wmOperator *op)
void ED_area_tag_redraw(ScrArea *area)
static wmOperatorStatus nlaedit_snap_exec(bContext *C, wmOperator *op)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
ListBaseT< NlaTrack > nla_tracks
ListBaseT< bAction > actions
int32_t action_slot_handle
ListBaseT< FModifier > modifiers
ListBaseT< NlaStrip > strips
ListBaseT< NlaStrip > strips
bool(*) has_setting(bAnimContext *ac, bAnimListElem *ale, eAnimChannel_Settings setting)
eAnimChannel_Role channel_role
ListBaseT< TimeMarker > * markers
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports