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 /source/blender/makesdna/DNA_userdef_types.h | |
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 'source/blender/makesdna/DNA_userdef_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index 2d3d091c65d..b90f1fd16df 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -735,11 +735,16 @@ typedef struct UserDef { short autokey_flag; /** Options for text rendering. */ - short text_render; - char _pad9; - + char text_render; char navigation_mode; + char _pad9[2]; + + /** Turn-table rotation amount per-pixel in radians. Scaled with DPI. */ + float view_rotate_sensitivity_turntable; + /** Track-ball rotation scale. */ + float view_rotate_sensitivity_trackball; + /** From texture.h. */ struct ColorBand coba_weight; |