diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-10-12 15:27:34 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-10-12 15:27:34 +0400 |
commit | 237cd688aaead5592393db58cf2e39e2ab3ce9b2 (patch) | |
tree | 9a03690d8ea68f67a4d552ce7e4db7650f31c3a2 /source/blender/editors/animation/anim_deps.c | |
parent | b4a113669d8fecad28369b3d777aa285addacf46 (diff) |
Animation Editors: 'Only Selected' filtering option now works on Pose Channels too
* Only F-Curves and Drivers that affect selected bones will be visible when this happens.
* Moved the function to grab text within a pair of "" following some prefix to blenlib.
Diffstat (limited to 'source/blender/editors/animation/anim_deps.c')
-rw-r--r-- | source/blender/editors/animation/anim_deps.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/editors/animation/anim_deps.c b/source/blender/editors/animation/anim_deps.c index 62341a5d6ae..9d39911548b 100644 --- a/source/blender/editors/animation/anim_deps.c +++ b/source/blender/editors/animation/anim_deps.c @@ -78,10 +78,7 @@ void ED_anim_object_flush_update(const bContext *C, Object *ob) * 3) Grouping (only for pose to action for now) */ -/* XXX OBSOLETE CODE WARNING: - * With the Animato system, the code below is somewhat obsolete now... - */ - + /* Notifier from Action/Dopesheet (this may be extended to include other things such as Python...) * Channels in action changed, so update pose channels/groups to reflect changes. * @@ -90,12 +87,14 @@ void ED_anim_object_flush_update(const bContext *C, Object *ob) */ void ANIM_action_to_pose_sync (Object *ob) { - bAction *act= (bAction *)ob->action; - bActionChannel *achan; +#if 0 + AnimData *adt= ob->adt; + bAction *act= adt->act; + FCurve *fcu; bPoseChannel *pchan; /* error checking */ - if ((ob == NULL) || (ob->type != OB_ARMATURE) || ELEM(NULL, act, ob->pose)) + if (ELEM3(NULL, ob, ob->adt, ob->pose) || (ob->type != OB_ARMATURE)) return; /* 1b) loop through all Action-Channels (there should be fewer channels to search through here in general) */ @@ -120,6 +119,7 @@ void ANIM_action_to_pose_sync (Object *ob) } // TODO: add grouping changes too? For now, these tools aren't exposed to users in animation editors yet... +#endif } /* Notifier from 3D-View/Outliner (this is likely to include other sources too...) |