diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-04-25 20:44:55 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-04-28 11:46:06 +0400 |
commit | 2aa9d33404ca96e6bd42224ebac19696e03550f8 (patch) | |
tree | ebaf3912a1b8802cf479a345a7708ad86f2eef9b /source/blender/editors/animation/keyingsets.c | |
parent | e44018220ab0b0bf63970861b0a718144afc2a56 (diff) |
Fix T39902: Keyframe insertion by a Keying Set fails in the edit mode when keyframing object data properties.
Reviewers: aligorith
Reviewed By: aligorith
Differential Revision: https://developer.blender.org/D484
Diffstat (limited to 'source/blender/editors/animation/keyingsets.c')
-rw-r--r-- | source/blender/editors/animation/keyingsets.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/editors/animation/keyingsets.c b/source/blender/editors/animation/keyingsets.c index dd8433f7770..28b2d26e59b 100644 --- a/source/blender/editors/animation/keyingsets.c +++ b/source/blender/editors/animation/keyingsets.c @@ -641,6 +641,16 @@ void ANIM_keyingset_infos_exit(void) BKE_keyingsets_free(&builtin_keyingsets); } +/* Check if the ID appears in the paths specified by the KeyingSet */ +bool ANIM_keyingset_find_id(KeyingSet *ks, ID *id) +{ + /* sanity checks */ + if (ELEM(NULL, ks, id)) + return false; + + return BLI_findptr(&ks->paths, id, offsetof(KS_Path, id)) != NULL; +} + /* ******************************************* */ /* KEYING SETS API (for UI) */ |