Refactor: combine insert_keyframe() and insert_key_rna() into a single function #122053
@ -138,7 +138,9 @@ void update_autoflags_fcurve_direct(FCurve *fcu, PropertyRNA *prop);
|
||||
*
|
||||
* \param scene_frame: the frame to insert the keys at. This is in scene time,
|
||||
* not NLA mapped (NLA mapping is already handled internally by this function).
|
||||
* If not given, the current scene time is used.
|
||||
* If not given, the evaluation time from `anim_eval_context` is used instead.
|
||||
nathanvegdahl marked this conversation as resolved
Outdated
|
||||
* TODO: this redundancy between `scene_frame` and `anim_eval_context` should
|
||||
* be eliminated. We shouldn't need both!
|
||||
*
|
||||
* \returns A summary of the successful and failed keyframe insertions, with
|
||||
* reasons for the failures.
|
||||
|
Loading…
Reference in New Issue
Block a user
"the current scene time" is ill defined here. There is no parameter that gives you this information unambiguously. I think this assumes that
anim_eval_context.eval_time
is always the scene time (which it may or may not be), but that assumption is not documented here. This means that the reader wouldn't know where this value comes from.Ah! Thanks for catching that. I wrote those docs when I thought
AnimationEvalContext
represented something more fundamental/core than it actually does.