On Wed, Jan 6, 2016 at 3:04 AM, Erick Blender <[email protected]> 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. _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
