Blender
V3.3
|
Go to the source code of this file.
Functions | |
void | animviz_settings_init (struct bAnimVizSettings *avs) |
struct bMotionPath * | animviz_copy_motionpath (const struct bMotionPath *mpath_src) |
void | animviz_free_motionpath_cache (struct bMotionPath *mpath) |
void | animviz_free_motionpath (struct bMotionPath *mpath) |
struct bMotionPath * | animviz_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) |
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().
void animviz_free_motionpath | ( | struct bMotionPath * | mpath | ) |
Free the given motion path instance and its data.
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().
void animviz_free_motionpath_cache | ( | struct bMotionPath * | mpath | ) |
Free the given motion path's cache.
Definition at line 48 of file anim_visualization.c.
References bMotionPath::batch_line, bMotionPath::batch_points, GPU_BATCH_DISCARD_SAFE, GPU_VERTBUF_DISCARD_SAFE, bMotionPath::length, MEM_freeN, NULL, bMotionPath::points, and bMotionPath::points_vbo.
Referenced by animviz_free_motionpath(), and animviz_verify_motionpaths().
void animviz_motionpath_blend_read_data | ( | struct BlendDataReader * | reader, |
struct bMotionPath * | mpath | ||
) |
Definition at line 216 of file anim_visualization.c.
References bMotionPath::batch_line, bMotionPath::batch_points, BLO_read_data_address, NULL, bMotionPath::points, and bMotionPath::points_vbo.
Referenced by BKE_pose_blend_read_data(), and object_blend_read_data().
void animviz_motionpath_blend_write | ( | struct BlendWriter * | writer, |
struct bMotionPath * | mpath | ||
) |
Definition at line 202 of file anim_visualization.c.
References BLO_write_struct, BLO_write_struct_array, bMotionPath::length, NULL, and bMotionPath::points.
Referenced by BKE_pose_blend_write(), and object_blend_write().
void animviz_settings_init | ( | struct bAnimVizSettings * | avs | ) |
Initialize the default settings for animation visualization.
Definition at line 26 of file anim_visualization.c.
References MOTIONPATH_BAKE_HEADS, MOTIONPATH_VIEW_KFNOS, MOTIONPATH_VIEW_KFRAS, NULL, bAnimVizSettings::path_ac, bAnimVizSettings::path_bakeflag, bAnimVizSettings::path_bc, bAnimVizSettings::path_ef, bAnimVizSettings::path_sf, bAnimVizSettings::path_step, and bAnimVizSettings::path_viewflag.
Referenced by BKE_pose_rebuild(), blo_do_versions_250(), blo_do_versions_260(), and object_init_data().
struct bMotionPath* animviz_verify_motionpaths | ( | struct ReportList * | reports, |
struct Scene * | scene, | ||
struct Object * | ob, | ||
struct bPoseChannel * | pchan | ||
) |
Setup motion paths for the given data.
scene | Current scene (for frame ranges, etc.) |
ob | Object to add paths for (must be provided) |
pchan | Posechannel 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().