NLA SoC: Fixes for Operator Poll Callbacks
authorJoshua Leung <aligorith@gmail.com>
Sun, 21 Jun 2009 03:02:40 +0000 (03:02 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sun, 21 Jun 2009 03:02:40 +0000 (03:02 +0000)
commited316ad8e967b85a79bb67b79ffc5e3cd90820a5
treedc7b9b16fa06d6d4cf9b91c52f1b23ba0f6329e7
parent6bca54aac17212f9c40b0a54a50a6c39e0817815
NLA SoC: Fixes for Operator Poll Callbacks

* Clicking on NLA tracks while in TweakMode now works so that channels can be muted/protected/expanded as per usual. However, they cannot be selected, as changing the selection state can interfere with TweakMode state changes

* Operators for animation channel-lists now use proper poll callbacks, which also take into account TweakMode where appropriate (i.e. all selection operators are now allowed to operate in NLA while in TweakMode, and all other operators will only work in Animation Editors)

* Action Editor operators now use the poll callback for Action Editors/DopeSheet instead of the generic active-araa one.
source/blender/editors/animation/anim_channels.c
source/blender/editors/space_action/action_edit.c
source/blender/editors/space_action/action_select.c
source/blender/editors/space_nla/nla_channels.c
source/blender/editors/space_nla/nla_edit.c
source/blender/editors/space_nla/nla_intern.h
source/blender/editors/space_nla/nla_ops.c