diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-06-21 05:41:39 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-06-21 05:41:39 +0400 |
commit | 3cad2a72b5d7e0dc18c56222a77fdf2d747f460c (patch) | |
tree | 3c2407aae4fa60583d70b12d16b401bc3f381d04 /source/blender/editors/transform | |
parent | 207911bdb3e5ba3e110cc7107186af988d2d10e8 (diff) |
Animation Channel Filtering Refactor - Part 1
* Removed list-expanders for Materials, Textures, and Particles. So
instead of:
Object
Materials
Material 1
... material 1 anim data ...
we now have
Object
Material 1
... material 1 anim data ...
This makes it faster+easier to get to these items. If you don't want
to see all of these, you can still use the data-block filters from the
header to hide these.
* Internal cleanup - removed "owner" and "ownertype" settings from
bAnimListElem. The purpose of these was muddled, and more of a hassle
to maintain than doing anything useful - it was only really used for
the stuff above.
* Removed need for "sa->spacedata.first" casts all over the show for
animation editor tools which needed access to editor data. This can
now be retrieved directly.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index 20a26d8c58d..82f3ad87785 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -349,6 +349,7 @@ void recalcData(TransInfo *t) ac.obact= OBACT; ac.sa= t->sa; ac.ar= t->ar; + ac.sl= (t->sa)? t->sa->spacedata.first : NULL; ac.spacetype= (t->sa)? t->sa->spacetype : 0; ac.regiontype= (t->ar)? t->ar->regiontype : 0; @@ -383,7 +384,7 @@ void recalcData(TransInfo *t) SpaceIpo *sipo= (SpaceIpo *)t->sa->spacedata.first; ListBase anim_data = {NULL, NULL}; - bAnimContext ac; + bAnimContext ac= {NULL}; int filter; bAnimListElem *ale; @@ -392,12 +393,11 @@ void recalcData(TransInfo *t) /* initialise relevant anim-context 'context' data from TransInfo data */ /* NOTE: sync this with the code in ANIM_animdata_get_context() */ - memset(&ac, 0, sizeof(bAnimContext)); - scene= ac.scene= t->scene; ac.obact= OBACT; ac.sa= t->sa; ac.ar= t->ar; + ac.sl= (t->sa)? t->sa->spacedata.first : NULL; ac.spacetype= (t->sa)? t->sa->spacetype : 0; ac.regiontype= (t->ar)? t->ar->regiontype : 0; |