add view3d roll to navigation menu.
authorCampbell Barton <ideasman42@gmail.com>
Sun, 1 Sep 2013 14:17:43 +0000 (14:17 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 1 Sep 2013 14:17:43 +0000 (14:17 +0000)
release/scripts/startup/bl_ui/space_view3d.py

index 078a70ee669580cf5d3bf12ab91b9beda4aacc0b..81892b62ad798e5b94690703f7c012a8eacdcba9 100644 (file)
@@ -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__)