diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-03 18:22:38 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-03 18:31:25 +0300 |
commit | e82b7f15270eb4e4dbcd119ea09d1f0204f1dc11 (patch) | |
tree | a3250de9f9d1ffa7a71737c19fcf80ac18b445ff /release/scripts | |
parent | 27aef8b551bd30817bac13cfe77d5a142ac0d037 (diff) |
3D View: preferences for rotate sensitivity
Added because the current default is too fast
for painting with tablets, see D5385.
Turntable and trackball have different settings because
turn-table uses an angle-per-pixel, where as trackball
values are relative to the view-port size so a scale is used.
The sensitivity is scaled by the pixel size so hi-dpi views don't rotate faster.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index 6a18766fae2..08f36bb15bb 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -1459,6 +1459,11 @@ class USERPREF_PT_navigation_orbit(PreferencePanel, Panel): flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=False) flow.row().prop(inputs, "view_rotate_method", expand=True) + if inputs.view_rotate_method == 'TURNTABLE': + flow.prop(inputs, "view_rotate_sensitivity_turntable") + else: + flow.prop(inputs, "view_rotate_sensitivity_trackball") + flow.prop(inputs, "use_rotate_around_active") flow.prop(inputs, "use_auto_perspective") flow.prop(inputs, "use_mouse_depth_navigate") |