Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2014-07-06 11:32:01 +0400
committerJoshua Leung <aligorith@gmail.com>2014-07-06 11:35:24 +0400
commita4c414580006645f5d789c37f7f5fe4f5a7d0d54 (patch)
tree932e4cb0c013e5703c7ce96daeea4752592f89f2 /release/scripts/startup/bl_ui/space_nla.py
parentb144a8961b84a643f0d5aaef7d9e17e827f1c527 (diff)
NLA/AnimEditors: Added operator to remove all "empty" AnimData blocks
It is sometimes possible to end up with a lot of datablocks which have old + unused "AnimData" containers still attached. This most commonly happens when doing motion graphics work (i.e. when some linked-in objects may have previously been used to develop a set of reusable assets), and is particularly distracting in the NLA Editor. This commit adds an operator which removes AnimData blocks (restricted to only those which are visible in the animation editor where it is run from) which are "empty" (i.e. that is, have no active action, drivers, and nla tracks or strips). This operator can be found from the "Edit" menu in the NLA Editor. Although it also works when run from the DopeSheet or Graph Editors, it is of less use there since those won't show these empty AnimData blocks by default (since by definition, such AnimData blocks necesarily have no keyframes or drivers that can be shown), hence there will be no feedback if the operator fails or succeeds.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_nla.py')
-rw-r--r--release/scripts/startup/bl_ui/space_nla.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_nla.py b/release/scripts/startup/bl_ui/space_nla.py
index baadc69d9f6..7634620cf0d 100644
--- a/release/scripts/startup/bl_ui/space_nla.py
+++ b/release/scripts/startup/bl_ui/space_nla.py
@@ -158,6 +158,7 @@ class NLA_MT_edit(Menu):
# TODO: this really belongs more in a "channel" (or better, "track") menu
layout.separator()
layout.operator_menu_enum("anim.channels_move", "direction", text="Track Ordering...")
+ layout.operator("anim.channels_clean_empty")
layout.separator()
# TODO: names of these tools for 'tweak-mode' need changing?