diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-10-17 08:22:52 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-10-17 08:22:52 +0400 |
commit | 53624a53d9054a91688a1a988c6f3515ab601923 (patch) | |
tree | d2318d340c03cccd9cadf835a50e19a5455bf230 /source/blender/blenkernel/intern/depsgraph.c | |
parent | 474e97e6d22973cf95262d5262e880c15683b828 (diff) |
Assorted tweaks for animation editors:
* Changing to the ShapeKey editor now automatically enables the value sliders
* Filtering code for ShapeKey editor can now do AnimData block filtering too (internal details...)
* Silenced console warnings when inserting keyframes on F-Curves with no keyframes already (for Animation Editor sliders)
* Made the update code for keyframe transforms send more general depsgraph updates. Unfortuately, this still doesn't resolve the update problems with shapekeys
Diffstat (limited to 'source/blender/blenkernel/intern/depsgraph.c')
-rw-r--r-- | source/blender/blenkernel/intern/depsgraph.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c index 26ea17a296a..d60a26e8feb 100644 --- a/source/blender/blenkernel/intern/depsgraph.c +++ b/source/blender/blenkernel/intern/depsgraph.c @@ -2235,7 +2235,18 @@ void DAG_id_flush_update(ID *id, short flag) } } } - + + /* set flags based on ShapeKey */ + if(idtype == ID_KE) { + for(obt=bmain->object.first; obt; obt= obt->id.next) { + Key *key= ob_get_key(obt); + if(!(ob && obt == ob) && ((ID *)key == id)) { + obt->flag |= (OB_RECALC|OB_RECALC_DATA); + BKE_ptcache_object_reset(sce, obt, PTCACHE_RESET_DEPSGRAPH); + } + } + } + /* set flags based on particle settings */ if(idtype == ID_PA) { ParticleSystem *psys; |