|
Blender V5.3
|
Classes | |
| struct | Runtime |
Functions | |
| void | set_preview_location (bMotionPath &mpath, const float location[3]) |
| void | clear_preview_location (bMotionPath &mpath) |
| struct bMotionPath * | copy (const struct bMotionPath *mpath_src) |
| void | free_cache (struct bMotionPath *mpath) |
| void | free (struct bMotionPath *mpath) |
| struct bMotionPath * | ensure (struct ReportList *reports, struct Scene *scene, struct Object *ob, struct bPoseChannel *pchan) |
| void | blend_write (struct BlendWriter *writer, struct bMotionPath *mpath) |
| void | blend_read_data (struct BlendDataReader *reader, struct bMotionPath *mpath) |
| bMotionPath * | copy (const bMotionPath *mpath_src) |
| void blender::bke::motionpath::blend_read_data | ( | struct BlendDataReader * | reader, |
| struct bMotionPath * | mpath ) |
Definition at line 254 of file anim_visualization.cc.
References blender::bMotionPath::batch_line, blender::bMotionPath::batch_points, blend_read_data(), blender::BLO_read_array_and_validate_size(), blender::bMotionPath::length, blender::bMotionPath::points, blender::bMotionPath::points_vbo, and blender::bMotionPath::runtime.
Referenced by blender::BKE_pose_blend_read_data(), blend_read_data(), copy(), and blender::object_blend_read_data().
| void blender::bke::motionpath::blend_write | ( | struct BlendWriter * | writer, |
| struct bMotionPath * | mpath ) |
Definition at line 242 of file anim_visualization.cc.
References blend_write(), blender::bMotionPath::length, blender::bMotionPath::points, blender::BlendStructWriter< T >::shallow_data, blender::BlendWriter::write_struct(), and blender::BlendWriter::write_struct_array().
Referenced by blender::BKE_pose_blend_write(), blend_write(), copy(), and blender::object_blend_write().
| void blender::bke::motionpath::clear_preview_location | ( | bMotionPath & | mpath | ) |
Remove the edit preview from the motionpath. See motionpath::Runtime::preview_location for more info.
Definition at line 65 of file anim_visualization.cc.
References blender::bke::motionpath::Runtime::batch_preview, clear_preview_location(), GPU_BATCH_DISCARD_SAFE, GPU_VERTBUF_DISCARD_SAFE, blender::bMotionPath::runtime, blender::bke::motionpath::Runtime::show_preview, and blender::bke::motionpath::Runtime::vbo_preview.
Referenced by blender::animviz_clear_motionpath_preview(), and clear_preview_location().
| bMotionPath * blender::bke::motionpath::copy | ( | const bMotionPath * | mpath_src | ) |
Definition at line 110 of file anim_visualization.cc.
References blender::bMotionPath::batch_line, blender::bMotionPath::batch_points, blender::BLI_assert(), copy(), blender::copy_v3_v3(), blender::bMotionPath::points, blender::bMotionPath::points_vbo, blender::bke::motionpath::Runtime::preview_location, blender::bMotionPath::runtime, and blender::bke::motionpath::Runtime::show_preview.
| struct bMotionPath * blender::bke::motionpath::copy | ( | const struct bMotionPath * | mpath_src | ) |
Make a copy of motion-path data, so that viewing with copy on write works.
References blend_read_data(), blend_write(), copy(), ensure(), free(), and free_cache().
Referenced by blender::BKE_pose_copy_data_ex(), copy(), copy(), and blender::object_copy_data().
| bMotionPath * blender::bke::motionpath::ensure | ( | struct ReportList * | reports, |
| struct Scene * | scene, | ||
| struct Object * | ob, | ||
| struct bPoseChannel * | pchan ) |
Ensures that a motion path exists for the given data and that the settings correctly adhere to the animviz settings.
| scene | Current scene (for frame ranges, etc.) |
| ob | Object to add paths for (must be provided) |
| pchan | Pose-channel to add paths for (optional; if not provided, object-paths are assumed). |
Definition at line 137 of file anim_visualization.cc.
References blender::bPose::avs, blender::Object::avs, blender::BKE_reportf(), blender::BLI_assert(), blender::bMotionPath::color, blender::bMotionPath::color_post, ELEM, blender::bMotionPath::end_frame, ensure(), blender::bMotionPath::flag, free_cache(), blender::Object::id, blender::bMotionPath::length, blender::bMotionPath::line_thickness, blender::MOTIONPATH_BAKE_CAMERA_SPACE, blender::MOTIONPATH_BAKE_HAS_PATHS, blender::MOTIONPATH_BAKE_HEADS, blender::MOTIONPATH_FLAG_BAKE_CAMERA, blender::MOTIONPATH_FLAG_BHEAD, blender::MOTIONPATH_FLAG_LINES, blender::bPoseChannel::mpath, blender::Object::mpath, blender::bPoseChannel::name, blender::ID::name, blender::bAnimVizSettings::path_bakeflag, blender::bAnimVizSettings::path_ef, blender::bAnimVizSettings::path_sf, blender::bMotionPath::points, blender::Object::pose, RPT_, blender::RPT_ERROR, blender::bMotionPath::runtime, and blender::bMotionPath::start_frame.
Referenced by copy(), ensure(), blender::ed::object::object_calculate_paths_exec(), blender::ed::object::object_update_paths_exec(), blender::pose_calculate_paths_exec(), and blender::pose_update_paths_exec().
| void blender::bke::motionpath::free | ( | struct bMotionPath * | mpath | ) |
Free the given motion path instance and its data.
Definition at line 96 of file anim_visualization.cc.
References free(), free_cache(), and blender::bMotionPath::runtime.
Referenced by blender::BKE_pose_channel_free_ex(), copy(), blender::do_versions_after_linking_502(), free(), blender::ed::object::object_clear_mpath(), blender::object_free_data(), and blender::pose_clear_paths().
| void blender::bke::motionpath::free_cache | ( | struct bMotionPath * | mpath | ) |
Free the given motion path's cache.
Definition at line 74 of file anim_visualization.cc.
References blender::bMotionPath::batch_line, blender::bMotionPath::batch_points, blender::bke::motionpath::Runtime::batch_preview, free_cache(), GPU_BATCH_DISCARD_SAFE, GPU_VERTBUF_DISCARD_SAFE, blender::bMotionPath::length, blender::bMotionPath::points, blender::bMotionPath::points_vbo, blender::bMotionPath::runtime, and blender::bke::motionpath::Runtime::vbo_preview.
Referenced by copy(), ensure(), free(), and free_cache().
| void blender::bke::motionpath::set_preview_location | ( | bMotionPath & | mpath, |
| const float | location[3] ) |
Sets a world space location to which a line will be drawn from the current frames motion path point. See motionpath::Runtime::preview_location for more info.
Definition at line 57 of file anim_visualization.cc.
References blender::bke::motionpath::Runtime::batch_preview, blender::copy_v3_v3(), GPU_BATCH_DISCARD_SAFE, GPU_VERTBUF_DISCARD_SAFE, blender::bke::motionpath::Runtime::preview_location, blender::bMotionPath::runtime, set_preview_location(), blender::bke::motionpath::Runtime::show_preview, and blender::bke::motionpath::Runtime::vbo_preview.
Referenced by blender::animviz_update_motionpath_preview(), and set_preview_location().