Blender  V3.3
Functions
BKE_anim_visualization.h File Reference

Go to the source code of this file.

Functions

void animviz_settings_init (struct bAnimVizSettings *avs)
 
struct bMotionPathanimviz_copy_motionpath (const struct bMotionPath *mpath_src)
 
void animviz_free_motionpath_cache (struct bMotionPath *mpath)
 
void animviz_free_motionpath (struct bMotionPath *mpath)
 
struct bMotionPathanimviz_verify_motionpaths (struct ReportList *reports, struct Scene *scene, struct Object *ob, struct bPoseChannel *pchan)
 
void animviz_motionpath_blend_write (struct BlendWriter *writer, struct bMotionPath *mpath)
 
void animviz_motionpath_blend_read_data (struct BlendDataReader *reader, struct bMotionPath *mpath)
 

Function Documentation

◆ animviz_copy_motionpath()

struct bMotionPath* animviz_copy_motionpath ( const struct bMotionPath mpath_src)

Make a copy of motion-path data, so that viewing with copy on write works.

Referenced by BKE_pose_copy_data_ex(), and object_copy_data().

◆ animviz_free_motionpath()

void animviz_free_motionpath ( struct bMotionPath mpath)

Free the given motion path instance and its data.

Note
this frees the motion path given!

Definition at line 69 of file anim_visualization.c.

References animviz_free_motionpath_cache(), MEM_freeN, and NULL.

Referenced by BKE_pose_channel_free_ex(), ED_pose_clear_paths(), object_clear_mpath(), and object_free_data().

◆ animviz_free_motionpath_cache()

void animviz_free_motionpath_cache ( struct bMotionPath mpath)

◆ animviz_motionpath_blend_read_data()

void animviz_motionpath_blend_read_data ( struct BlendDataReader reader,
struct bMotionPath mpath 
)

◆ animviz_motionpath_blend_write()

void animviz_motionpath_blend_write ( struct BlendWriter writer,
struct bMotionPath mpath 
)

◆ animviz_settings_init()

void animviz_settings_init ( struct bAnimVizSettings avs)

◆ animviz_verify_motionpaths()

struct bMotionPath* animviz_verify_motionpaths ( struct ReportList reports,
struct Scene scene,
struct Object ob,
struct bPoseChannel pchan 
)

Setup motion paths for the given data.

Note
Only used when explicitly calculating paths on bones which may/may not be consider already
Parameters
sceneCurrent scene (for frame ranges, etc.)
obObject to add paths for (must be provided)
pchanPosechannel to add paths for (optional; if not provided, object-paths are assumed)

Definition at line 106 of file anim_visualization.c.

References animviz_free_motionpath_cache(), bPose::avs, Object::avs, BKE_reportf(), bMotionPath::color, ELEM, bMotionPath::end_frame, bMotionPath::flag, Object::id, bMotionPath::length, bMotionPath::line_thickness, MEM_callocN, MOTIONPATH_BAKE_HAS_PATHS, MOTIONPATH_BAKE_HEADS, MOTIONPATH_FLAG_BHEAD, MOTIONPATH_FLAG_LINES, bPoseChannel::mpath, Object::mpath, bPoseChannel::name, ID::name, NULL, bAnimVizSettings::path_bakeflag, bAnimVizSettings::path_ef, bAnimVizSettings::path_sf, bMotionPath::points, Object::pose, RPT_ERROR, scene, bMotionPath::start_frame, and TIP_.

Referenced by object_calculate_paths_exec(), object_update_paths_exec(), pose_calculate_paths_exec(), and pose_update_paths_exec().