[Bf-committers] Updating motion path
ideasman42 at gmail.com
Tue Jan 5 18:13:37 CET 2016
On Wed, Jan 6, 2016 at 3:04 AM, Erick Blender <erickblender at gmail.com> wrote:
> Hi Devs,
> I was trying to modify Blender source code so that motion path will be
> updated when inserting the keyframe with " I ". For now the path is updated
> automatically only when auto keyframing is on. I don't like working with
> auto keyframe.
> Just something for you to know, I m newbie i m studying c, c++ by myself.
> So I already find the pose_update_paths_exec(bContext *C, wmOperator
> *UNUSED(op)), which is in the pose_edit.c and it suppose to update motion
> path, and i also find insert_key_exec(bContext *C, wmOperator *op), which
> is in keyframing.c and suppose to be the function that is called when
> inserting keyframe with shortcut * i* when only "available" is selected .
> Please forgive me if i m reading the code wrong.
> My problem now is when i m copying that pose_update_paths_exec() in
> insert_key_exec() the compiler is complaining. When i checked the headers
> file i realized that pose_edit.c and keyframing.c don't have own header
> files, so how to solve this? How can i call a function from an other file?
> Thanks in advance
The *_exec functions are callbacks for operators,
These are only meant to be used by operators and aren't meant to be
shared or used as a common API.
Instead call ED_pose_recalculate_paths.
More information about the Bf-committers