Blender  V3.3
Functions
anim_visualization.c File Reference
#include "MEM_guardedalloc.h"
#include "DNA_action_types.h"
#include "DNA_anim_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLT_translation.h"
#include "BKE_anim_visualization.h"
#include "BKE_report.h"
#include "GPU_batch.h"
#include "BLO_read_write.h"

Go to the source code of this file.

Functions

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

Function Documentation

◆ animviz_copy_motionpath()

bMotionPath* animviz_copy_motionpath ( const bMotionPath mpath_src)

◆ 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 ( BlendDataReader reader,
bMotionPath mpath 
)

◆ animviz_motionpath_blend_write()

void animviz_motionpath_blend_write ( BlendWriter writer,
bMotionPath mpath 
)

◆ animviz_settings_init()

void animviz_settings_init ( struct bAnimVizSettings avs)

◆ animviz_verify_motionpaths()

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().