Blender
V3.3
|
#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) |
bMotionPath * | animviz_copy_motionpath (const bMotionPath *mpath_src) |
bMotionPath * | animviz_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) |
bMotionPath* animviz_copy_motionpath | ( | const bMotionPath * | mpath_src | ) |
Definition at line 85 of file anim_visualization.c.
References bMotionPath::batch_line, bMotionPath::batch_points, MEM_dupallocN, NULL, bMotionPath::points, and bMotionPath::points_vbo.
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 | ( | BlendDataReader * | reader, |
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 | ( | BlendWriter * | writer, |
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().
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().