diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-03-24 15:48:03 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-03-24 15:48:03 +0300 |
commit | 230a2e62f09f3e9c18aa585231985023a7c270bb (patch) | |
tree | 5d2a415f08d4ee1886bd961b9920450d9edf836b /source/blender/editors/animation/keyingsets.c | |
parent | 094098fa9d8caba99376e6b33dd607c8a0ece448 (diff) |
Keying Sets - PyAPI consistency issues:
* Added 'id_name' property, which is used as the "typeinfo_name" by Keying Set instances. This is simply the name of the relevant KeyingSetInfo classes.
* Renamed the 'array_index' arg for ks.add_path() to 'index'. Also removed the 'entire array' toggle arg in favour of just passing -1 to index. However, Keying Sets in general still maintain their 'entire array' toggle flags for now, it's just that the API function does conversion between the two.
Diffstat (limited to 'source/blender/editors/animation/keyingsets.c')
-rw-r--r-- | source/blender/editors/animation/keyingsets.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/animation/keyingsets.c b/source/blender/editors/animation/keyingsets.c index f7a4fe69d26..5e2bf4a7061 100644 --- a/source/blender/editors/animation/keyingsets.c +++ b/source/blender/editors/animation/keyingsets.c @@ -471,7 +471,7 @@ KeyingSetInfo *ANIM_keyingset_info_find_named (const char name[]) /* search by comparing names */ for (ksi = keyingset_type_infos.first; ksi; ksi = ksi->next) { - if (strcmp(ksi->name, name) == 0) + if (strcmp(ksi->idname, name) == 0) return ksi; } @@ -517,7 +517,7 @@ void ANIM_keyingset_info_register (const bContext *C, KeyingSetInfo *ksi) ks = BKE_keyingset_add(&builtin_keyingsets, ksi->name, 1, ksi->keyingflag); /* link this KeyingSet with its typeinfo */ - memcpy(&ks->typeinfo, ksi->name, sizeof(ks->typeinfo)); + memcpy(&ks->typeinfo, ksi->idname, sizeof(ks->typeinfo)); /* add type-info to the list */ BLI_addtail(&keyingset_type_infos, ksi); @@ -536,7 +536,7 @@ void ANIM_keyingset_info_unregister (const bContext *C, KeyingSetInfo *ksi) ksn = ks->next; /* remove if matching typeinfo name */ - if (strcmp(ks->typeinfo, ksi->name) == 0) { + if (strcmp(ks->typeinfo, ksi->idname) == 0) { BKE_keyingset_free(ks); BLI_freelinkN(&scene->keyingsets, ks); } |