Refactor: combine insert_keyframe() and insert_key_rna() into a single function #122053

Merged
Nathan Vegdahl merged 49 commits from nathanvegdahl/blender:combine_keying_functions into main 2024-06-11 16:43:08 +02:00
Showing only changes of commit 74b82c0fba - Show all commits

View File

@ -1033,9 +1033,9 @@ static int insert_key_button_exec(bContext *C, wmOperator *op)
* elements" or "not an array property". */
const std::optional<int> array_index = (all || index < 0) ? std::nullopt :
std::optional(index);
PointerRNA owner_ptr = RNA_id_pointer_create(ptr.owner_id);
CombinedKeyingResult result = insert_keyframes(bmain,
&ptr,
&owner_ptr,
{{*path, {}, array_index}},
group,
std::nullopt,