Blender Git Loki

Git Commits -> Revision 53f4aa7

Revision 53f4aa7 by Joshua Leung (master)
April 3, 2015, 22:37 (GMT)
WIP: Added dedicated operator for unlinking actions from the Action Editor (NLA buttons support to come)

After looking into this more carefully, I've found that we do in fact need a dedicate
operator to add some custom logic when trying to unlink an action from the editor/datablocks.

Specifically, this new operator does the following:
1) When in Tweak Mode, it shouldn't be possible to unlink the active action,
or else, everything turns to custard.
2) If the Action doesn't have any other users, the user should at least get
a warning that it is going to get lost.
3) We need a convenient way to exit Tweak Mode from the Action Editor
4) If none of the above apply, we can just unlink normally

This commit implements this for the Action Editor, with stubs for the NLA Editor too.
Those will be fixed next.

Commit Details:

Full Hash: 53f4aa78175307e75e6a9c6deb6fb7f1caf766f9
Parent Commit: 34c4133
Lines Changed: +179, -15

9 Modified Paths:

/release/scripts/startup/bl_ui/space_dopesheet.py (+1, -1) (Diff)
/source/blender/editors/include/ED_anim_api.h (+8, -0) (Diff)
/source/blender/editors/space_action/action_data.c (+114, -12) (Diff)
/source/blender/editors/space_action/action_intern.h (+2, -0) (Diff)
/source/blender/editors/space_action/action_ops.c (+2, -0) (Diff)
/source/blender/editors/space_nla/nla_buttons.c (+4, -2) (Diff)
/source/blender/editors/space_nla/nla_channels.c (+46, -0) (Diff)
/source/blender/editors/space_nla/nla_intern.h (+1, -0) (Diff)
/source/blender/editors/space_nla/nla_ops.c (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021