|
Blender V4.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 68 of file anim_visualization.cc.
References animviz_free_motionpath_cache(), and MEM_freeN().
Referenced by BKE_pose_channel_free_ex(), ED_pose_clear_paths(), blender::ed::object::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 47 of file anim_visualization.cc.
References bMotionPath::batch_line, bMotionPath::batch_points, GPU_BATCH_DISCARD_SAFE, GPU_VERTBUF_DISCARD_SAFE, bMotionPath::length, MEM_freeN(), 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 228 of file anim_visualization.cc.
References bMotionPath::batch_line, bMotionPath::batch_points, BLO_read_struct_array, bMotionPath::length, 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 214 of file anim_visualization.cc.
References BLO_write_struct, BLO_write_struct_array, bMotionPath::length, 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 25 of file anim_visualization.cc.
References MOTIONPATH_BAKE_HEADS, MOTIONPATH_VIEW_KFNOS, MOTIONPATH_VIEW_KFRAS, 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 105 of file anim_visualization.cc.
References animviz_free_motionpath_cache(), bPose::avs, Object::avs, BKE_reportf(), BLI_assert, bMotionPath::color, bMotionPath::color_post, ELEM, bMotionPath::end_frame, bMotionPath::flag, Object::id, bMotionPath::length, bMotionPath::line_thickness, MEM_callocN, MOTIONPATH_BAKE_CAMERA_SPACE, MOTIONPATH_BAKE_HAS_PATHS, MOTIONPATH_BAKE_HEADS, MOTIONPATH_FLAG_BAKE_CAMERA, MOTIONPATH_FLAG_BHEAD, MOTIONPATH_FLAG_LINES, bPoseChannel::mpath, Object::mpath, bPoseChannel::name, ID::name, bAnimVizSettings::path_bakeflag, bAnimVizSettings::path_ef, bAnimVizSettings::path_sf, bMotionPath::points, Object::pose, RPT_, RPT_ERROR, and bMotionPath::start_frame.
Referenced by blender::ed::object::object_calculate_paths_exec(), blender::ed::object::object_update_paths_exec(), pose_calculate_paths_exec(), and pose_update_paths_exec().