Blender V5.3
anim_data.cc File Reference
#include "MEM_guardedalloc.h"
#include <cstring>
#include <optional>
#include "BKE_action.hh"
#include "BKE_anim_data.hh"
#include "BKE_animsys.hh"
#include "BKE_context.hh"
#include "BKE_fcurve.hh"
#include "BKE_fcurve_driver.h"
#include "BKE_global.hh"
#include "BKE_idtype.hh"
#include "BKE_lib_id.hh"
#include "BKE_lib_query.hh"
#include "BKE_main.hh"
#include "BKE_nla.hh"
#include "BKE_node.hh"
#include "BKE_report.hh"
#include "DNA_ID.h"
#include "DNA_action_types.h"
#include "DNA_anim_types.h"
#include "DNA_light_types.h"
#include "DNA_material_types.h"
#include "DNA_node_types.h"
#include "DNA_windowmanager_types.h"
#include "DNA_world_types.h"
#include "BLI_alloca.hh"
#include "BLI_dynstr.hh"
#include "BLI_listbase.hh"
#include "BLI_string.hh"
#include "BLI_string_utf8.hh"
#include "BLI_utildefines.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "BLO_read_write.hh"
#include "BLO_readfile.hh"
#include "RNA_access.hh"
#include "RNA_path.hh"
#include "RNA_prototypes.hh"
#include "ANIM_action_iterators.hh"
#include "ANIM_action_legacy.hh"
#include "ANIM_versioning.hh"
#include "CLG_log.h"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke
namespace  blender::bke::animdata

Typedefs

using blender::IDFCurveCallback = FunctionRef<bool(ID *, FCurve *)>

Functions

bool blender::id_type_can_have_animdata (short id_type)
bool blender::id_can_have_animdata (const ID *id)
AnimData * blender::BKE_animdata_from_id (const ID *id)
AnimData * blender::BKE_animdata_ensure_id (ID *id)
bool blender::BKE_animdata_set_action (ReportList *reports, ID *id, bAction *act)
bool blender::BKE_animdata_action_editable (const AnimData *adt)
void blender::BKE_animdata_free (ID *id, bool do_id_user)
bool blender::BKE_animdata_id_is_animated (const ID *id)
void blender::BKE_animdata_foreach_id (AnimData *adt, LibraryForeachIDData *data)
AnimData * blender::BKE_animdata_copy_in_lib (Main *bmain, std::optional< Library * > owner_library, AnimData *adt, int flag)
AnimData * blender::BKE_animdata_copy (Main *bmain, AnimData *adt, int flag)
bool blender::BKE_animdata_copy_id (Main *bmain, ID *id_to, ID *id_from, int flag)
static void blender::animdata_copy_id_action (Main *bmain, ID *id, const bool set_newid, const bool do_linked_id)
void blender::BKE_animdata_copy_id_action (Main *bmain, ID *id)
void blender::BKE_animdata_duplicate_id_action (Main *bmain, ID *id, uint duplicate_flags)
void blender::BKE_animdata_merge_copy (Main *bmain, ID *dst_id, ID *src_id, eAnimData_MergeCopy_Modes action_mode, bool fix_drivers)
static bool blender::animpath_matches_basepath (const StringRef path, const StringRef basepath)
static void blender::animpath_update_basepath (FCurve *fcu, const StringRef old_basepath, const StringRef new_basepath)
static bool blender::action_copy_fcurves_by_basepath (const animrig::Action &src_action, const animrig::slot_handle_t src_slot_handle, animrig::Action &dst_action, const animrig::slot_handle_t dst_slot_handle, const StringRef src_basepath, const StringRef dst_basepath)
static bool blender::animdata_copy_drivers_by_basepath (AnimData &src_adt, AnimData &dst_adt, const StringRef src_basepath, const StringRef dst_basepath)
static std::pair< AnimData *, AnimData * > blender::ensure_animdata_pair (Main &bmain, const ID &src_id, ID &dst_id)
void blender::BKE_animdata_copy_by_basepath (Main &bmain, const ID &src_id, ID &dst_id, Span< AnimationBasePathChange > basepaths)
static bool blender::check_rna_path_is_valid (ID &owner_id, const StringRefNull path)
static std::optional< std::string > blender::rna_path_rename_fix (ID &owner_id, const StringRef prefix, const StringRef old_infix, const StringRef new_infix, const StringRefNull old_path, const bool verify_paths)
static std::string blender::infix_to_name (const StringRef infix)
static bool blender::fcurves_path_rename_fix (ID &owner_id, const StringRef prefix, const StringRef old_infix, const StringRef new_infix, const Span< FCurve * > curves, const bool verify_paths)
static bool blender::rename_paths_action (bAction *dna_action, const animrig::slot_handle_t slot_handle, ID &owner_id, const StringRef prefix, const StringRef old_infix, const StringRef new_infix, const bool verify_paths)
static bool blender::nlastrips_path_rename_fix (ID &owner_id, const StringRef prefix, const StringRef old_infix, const StringRef new_infix, ListBaseT< NlaStrip > &strips, const bool verify_paths)
char * blender::BKE_animsys_fix_rna_path_rename (ID *owner_id, const char *old_path, StringRef prefix, StringRefNull old_name, StringRefNull newName)
void blender::BKE_action_fix_paths_rename (ID *owner_id, bAction *act, animrig::slot_handle_t slot_handle, const StringRef prefix, const StringRefNull old_name, const StringRefNull new_name, const bool verify_paths)
static bool blender::driver_target_path_fix (ID &owner_id, const StringRef prefix, const StringRef old_infix, const StringRef new_infix, const DriverMap &driver_map)
DriverMap blender::BKE_animdata_build_driver_target_map (Main &bmain)
void blender::BKE_animdata_fix_paths (ID &id, StringRef prefix, StringRef old_infix, StringRef new_infix, bool verify_paths, const DriverMap &driver_map)
void blender::BKE_animdata_fix_paths (ID &id, StringRef prefix, StringRef old_infix, StringRef new_infix, bool verify_paths, Main &bmain)
static bool blender::fcurves_path_remove_from_listbase (const char *prefix, ListBaseT< FCurve > *curves)
static bool blender::nlastrips_path_remove_fix (const char *prefix, ListBaseT< NlaStrip > *strips)
bool blender::BKE_animdata_fix_paths_remove (ID *id, const char *prefix)
bool blender::BKE_animdata_driver_path_remove (ID *id, StringRefNull prefix)
bool blender::BKE_animdata_drivers_remove_for_rna_struct (ID &owner_id, struct StructRNA &type, void *data)
static bool blender::fcurves_apply_cb (ID *id, Span< FCurve * > fcurves, const IDFCurveCallback func)
static bool blender::fcurves_listbase_apply_cb (ID *id, ListBaseT< FCurve > *fcurves, const IDFCurveCallback func)
static bool blender::nlastrips_apply_all_curves_cb (ID *id, ListBaseT< NlaStrip > *strips, const IDFCurveCallback func)
static bool blender::adt_apply_all_fcurves_cb (ID *id, AnimData *adt, const IDFCurveCallback func)
void blender::BKE_fcurves_id_cb (ID *id, const FunctionRef< void(ID *, FCurve *)> func)
void blender::BKE_fcurves_main_cb (Main *bmain, const FunctionRef< void(ID *, FCurve *)> func)
void blender::BKE_animdata_blend_write (BlendWriter *writer, ID *id)
void blender::BKE_animdata_blend_read_data (BlendDataReader *reader, ID *id)
void blender::BKE_animdata_liboverride_post_process (ID *id)
void blender::bke::animdata::action_slots_user_cache_invalidate (Main &bmain)
bool blender::bke::animdata::prop_is_animated (const AnimData *adt, StringRefNull rna_path, int array_index)

Variables

static CLG_LogRef blender::LOG = {"anim.data"}