diff options
author | Mike Erwin <significant.bit@gmail.com> | 2011-07-19 08:12:49 +0400 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2011-07-19 08:12:49 +0400 |
commit | 7f74abeaca38d0c1634a8d0532bb38877a1f730e (patch) | |
tree | 408c1c5cda3cc134e0f185085b437638af9573ac /release/scripts/startup/bl_ui/space_view3d.py | |
parent | 5f47123fded84fed85d6a0713f814c99f68c1ce7 (diff) |
translated ndof menu from C to Python, enabled helicopter fly mode
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 02004283264..a8a15b674b0 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -352,6 +352,25 @@ class VIEW3D_MT_view_navigation(bpy.types.Menu): layout.operator("view3d.fly") +class VIEW3D_MT_ndof_settings(bpy.types.Menu): + bl_label = "3D Mouse Settings" + + def draw(self, context): + layout = self.layout + input_prefs = context.user_preferences.inputs + + layout.separator() + layout.prop(input_prefs, "ndof_sensitivity") + + if context.space_data.type == 'VIEW_3D': + layout.separator() + layout.prop(input_prefs, "ndof_show_guide") + + layout.separator() + layout.prop(input_prefs, "ndof_fly_helicopter", icon='NDOF_FLY') + layout.prop(input_prefs, "ndof_lock_horizon", icon='NDOF_DOM') + + class VIEW3D_MT_view_align(bpy.types.Menu): bl_label = "Align View" |