diff options
Diffstat (limited to 'release')
-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__) |