Anim Editors: "View Frame" Operator - Code Cleanups/Reshuffling + NLA/Timeline Support

* Reshuffled code for existing "View Frame" implementations, and removed leftover
  comment from some of the the copy-and-paste used to build it.
* Added support for this operator in the NLA and Timeline
This commit is contained in:
Joshua Leung
2016-04-17 03:44:10 +12:00
parent 5d6b695f00
commit b973911fee
8 changed files with 88 additions and 21 deletions

View File

@@ -86,6 +86,7 @@ class NLA_MT_view(Menu):
layout.separator()
layout.operator("nla.view_all")
layout.operator("nla.view_selected")
layout.operator("nla.view_frame")
layout.separator()
layout.operator("screen.area_dupli")

View File

@@ -130,7 +130,6 @@ class TIME_MT_view(Menu):
layout.prop(st, "show_seconds")
layout.prop(st, "show_locked_time")
layout.operator("time.view_all")
layout.separator()
@@ -143,6 +142,11 @@ class TIME_MT_view(Menu):
layout.separator()
layout.operator("time.view_all")
layout.operator("time.view_frame")
layout.separator()
layout.operator("marker.camera_bind")
layout.separator()