diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-05-07 17:15:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-05-07 17:15:43 +0300 |
commit | f33286c48fe3e5aa59b03bcb6028f81c36958c64 (patch) | |
tree | a1d8255e384d0dcefefb3bd3293535643fcfee5a /source/blender/makesrna/intern/rna_key.c | |
parent | 8e9c7f70c80cbe1a6a67c3f7c639b0939982b332 (diff) | |
parent | 9ba112eb8939a7fb91381a655412742e5ccee254 (diff) |
Merge branch 'alembic' into gooseberry
Diffstat (limited to 'source/blender/makesrna/intern/rna_key.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_key.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_key.c b/source/blender/makesrna/intern/rna_key.c index 9d193fa68b8..43ae6958544 100644 --- a/source/blender/makesrna/intern/rna_key.c +++ b/source/blender/makesrna/intern/rna_key.c @@ -48,10 +48,12 @@ #include <stddef.h> +#include "DNA_cache_library_types.h" #include "DNA_object_types.h" #include "DNA_scene_types.h" #include "BKE_animsys.h" +#include "BKE_cache_library.h" #include "BKE_depsgraph.h" #include "BKE_key.h" #include "BKE_main.h" @@ -376,6 +378,7 @@ static void rna_Key_update_data(Main *bmain, Scene *UNUSED(scene), PointerRNA *p { Key *key = ptr->id.data; Object *ob; + CacheLibrary *cachelib; switch (key->from_extra.type) { case KEY_OWNER_MESH: @@ -401,6 +404,13 @@ static void rna_Key_update_data(Main *bmain, Scene *UNUSED(scene), PointerRNA *p } break; } + + for (cachelib = bmain->cache_library.first; cachelib; cachelib = cachelib->id.next) { + if (BKE_cache_library_uses_key(cachelib, key)) { + DAG_id_tag_update(&cachelib->id, OB_RECALC_DATA); + WM_main_add_notifier(NC_WINDOW, NULL); + } + } } static KeyBlock *rna_ShapeKeyData_find_keyblock(Key *key, float *point) |