diff options
author | Joshua Leung <aligorith@gmail.com> | 2013-03-14 10:34:02 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2013-03-14 10:34:02 +0400 |
commit | 07f2efe82f0bbc2ee2772f6aa29f33cdac2b546e (patch) | |
tree | f8a9a958c64023c0a0cbb1253569c004f35645b3 /release/scripts/startup/bl_ui/space_nla.py | |
parent | 396758757b4be84918366b436a42cb311f616518 (diff) |
NLA Editor: Operator to add AnimData to selected objects so that they can appear
This commit introduces an operator in the Add menu - this operator ensures that
all selected objects have AnimData attached to them (even if they don't have any
actions/drivers yet). By doing this, these objects can at least appear in the
NLA Editor, which will allow them to have strips added to them in future without
having to create throwaway actions first (NOTE: there's still some stuff coming
to allow that).
Also, renamed NLA_OT_delete_tracks -> NLA_OT_tracks_delete
Diffstat (limited to 'release/scripts/startup/bl_ui/space_nla.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_nla.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_nla.py b/release/scripts/startup/bl_ui/space_nla.py index b15dcb3d07c..49dedaa83c5 100644 --- a/release/scripts/startup/bl_ui/space_nla.py +++ b/release/scripts/startup/bl_ui/space_nla.py @@ -167,6 +167,9 @@ class NLA_MT_add(Menu): layout.separator() layout.operator("nla.tracks_add").above_selected = False layout.operator("nla.tracks_add", text="Add Tracks Above Selected").above_selected = True + + layout.separator() + layout.operator("nla.selected_objects_add") class NLA_MT_edit_transform(Menu): |