diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-01 18:17:43 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-01 18:17:43 +0400 |
commit | 45e2e9ce5994a471f5c96cb62b79333acf470db1 (patch) | |
tree | 8f1859dbf708b2f6584c558ca1815bb91cc2ebfc | |
parent | 4bcccc24c1bb412d19d5e4ecfb3cbbbbc86321af (diff) |
add view3d roll to navigation menu.
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 078a70ee669..81892b62ad7 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -399,12 +399,18 @@ class VIEW3D_MT_view_navigation(Menu): bl_label = "Navigation" def draw(self, context): + from math import pi layout = self.layout layout.operator_enum("view3d.view_orbit", "type") layout.separator() + layout.operator("view3d.view_roll", text="Roll Left").angle = pi / -12.0 + layout.operator("view3d.view_roll", text="Roll Right").angle = pi / 12.0 + + layout.separator() + layout.operator_enum("view3d.view_pan", "type") layout.separator() @@ -2997,6 +3003,3 @@ def unregister(): if __name__ == "__main__": register() - -if __name__ == "__main__": # only for live edit. - bpy.utils.register_module(__name__) |