27 return scene->
adt !=
nullptr && scene->
adt->
action !=
nullptr &&
33 return scene->
adt !=
nullptr && !scene->
adt->
drivers.is_empty();
39 fcurve,
"sequence_editor.strips_all[", strip.name + 2);
50 return fcurve_matches(*strip, fcurve);
53 for (
FCurve *fcu : fcurves) {
56 for (i = 0; i < fcu->totvert; i++) {
58 bezt->
vec[0][0] += ofs;
59 bezt->
vec[1][0] += ofs;
60 bezt->
vec[2][0] += ofs;
64 for (i = 0; i < fcu->totvert; i++) {
65 FPoint *fpt = &fcu->fpt[i];
82 return fcurve_matches(*strip, fcurve);
86 for (
FCurve *fcu : fcurves) {
128 if (!backup->
drivers.is_empty()) {
143 for (
Strip &meta_child : strip->seqbase) {
150 [&](
const FCurve &fcurve) { return fcurve_matches(*strip, fcurve); });
152 for (
const FCurve *fcu : fcurves) {
161 fcu_copy->
grp =
nullptr;
173 for (
Strip &meta_child : strip->seqbase) {
179 src->
drivers, [&](
const FCurve &fcurve) { return fcurve_matches(*strip, fcurve); });
181 for (
const FCurve *fcu : fcurves) {
197 if (!backup->
drivers.is_empty()) {
Span< const FCurve * > fcurves() const
void action_fcurve_attach(Action &action, slot_handle_t action_slot, FCurve &fcurve_to_attach, std::optional< StringRefNull > group_name)
bool action_fcurve_remove(Action &action, FCurve &fcu)
void assert_baklava_phase_1_invariants(const Action &action)
bool fcurve_matches_collection_path(const FCurve &fcurve, StringRefNull collection_rna_path, StringRefNull data_name)
decltype(blender::ActionSlot::handle) slot_handle_t
void channelbag_fcurves_move(Channelbag &channelbag_dst, Channelbag &channelbag_src)
Vector< FCurve * > fcurves_in_action_slot_filtered(bAction *act, slot_handle_t slot_handle, FunctionRef< bool(const FCurve &fcurve)> predicate)
const animrig::Channelbag * channelbag_for_action_slot(const Action &action, slot_handle_t slot_handle)
Vector< FCurve * > fcurves_in_span_filtered(Span< FCurve * > fcurves, FunctionRef< bool(const FCurve &fcurve)> predicate)
Vector< FCurve * > fcurves_in_listbase_filtered(ListBaseT< FCurve > fcurves, FunctionRef< bool(const FCurve &fcurve)> predicate)
static void strip_drivers_duplicate(Strip *strip, AnimData *dst, AnimationBackup *src)
static void strip_animation_duplicate(Strip *strip, animrig::Action &dst, const animrig::slot_handle_t dst_slot_handle, AnimationBackup *src)
bool animation_keyframes_exist(const Scene *scene)
void animation_duplicate_backup_to_scene(Scene *scene, Strip *strip, AnimationBackup *backup)
void offset_animdata(const Scene *scene, Strip *strip, float ofs)
bool animation_drivers_exist(Scene *scene)
void free_animdata(Scene *scene, Strip *strip)
void animation_backup_original(Scene *scene, AnimationBackup *backup)
void animation_restore_original(Scene *scene, AnimationBackup *backup)
bool fcurve_matches(const Strip &strip, const FCurve &fcurve)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void void void BLI_movelisttolist(ListBase *dst, ListBase *src) ATTR_NONNULL(1
void DEG_id_tag_update(ID *id, unsigned int flags)
FCurve * BKE_fcurve_copy(const FCurve *fcu)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
ListBaseT< FCurve > drivers
animrig::Channelbag channelbag
ListBaseT< FCurve > drivers