Blender V5.3
blender::bke::motionpath Namespace Reference

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)

Function Documentation

◆ blend_read_data()

◆ blend_write()

◆ clear_preview_location()

◆ copy() [1/2]

◆ copy() [2/2]

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

◆ ensure()

bMotionPath * blender::bke::motionpath::ensure ( struct ReportList * reports,
struct Scene * scene,
struct Object * ob,
struct bPoseChannel * pchan )

◆ free()

void blender::bke::motionpath::free ( struct bMotionPath * mpath)

Free the given motion path instance and its data.

Note
this frees the motion path given!

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

◆ free_cache()

◆ set_preview_location()