change to insert_keyframe() so an array index of -1 keys all arrays indices

made this default for python so you can do...
 pose_bone.keyframe_insert("location")

rather then
 pose_bone.keyframe_insert("location", 0)
 pose_bone.keyframe_insert("location", 1)
 pose_bone.keyframe_insert("location", 2)
This commit is contained in:
2009-11-04 14:06:10 +00:00
parent 510aa6ba53
commit 42fb30f37a
2 changed files with 23 additions and 6 deletions

View File

@@ -1155,7 +1155,7 @@ static PySequenceMethods pyrna_prop_as_sequence = {
static PyObject *pyrna_struct_keyframe_insert(BPy_StructRNA * self, PyObject *args)
{
char *path, *path_full;
int index= 0;
int index= -1; /* default to all */
float cfra = CTX_data_scene(BPy_GetContext())->r.cfra;
PropertyRNA *prop;
PyObject *result;