diff options
author | Campbell Barton <campbell@blender.org> | 2022-02-23 13:25:46 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-02-23 13:25:46 +0300 |
commit | 391c3848b1326db1c29fc5c5f791d732d7d282a3 (patch) | |
tree | 9c835b3618a8177b5b724454f635e0f19d0f171d /source/blender/makesrna/intern/rna_userdef.c | |
parent | 34294449059744ba4b3d4b16eb5fb14a48c16265 (diff) |
NDOF: make camera view/pan behavior optional
User request since adding this option in:
51975b89edfcc02131f1f8248e1b3442ea2778fa
When disabled, use the previous behavior when orbiting a camera view.
Diffstat (limited to 'source/blender/makesrna/intern/rna_userdef.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index e32bedf3ed0..2a759dde39a 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -6040,6 +6040,13 @@ static void rna_def_userdef_input(BlenderRNA *brna) "Helicopter Mode", "Device up/down directly controls the Z position of the 3D viewport"); + prop = RNA_def_property(srna, "ndof_lock_camera_pan_zoom", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "ndof_flag", NDOF_CAMERA_PAN_ZOOM); + RNA_def_property_ui_text( + prop, + "Lock Camera Pan/Zoom", + "Pan/zoom the camera view instead of leaving the camera view when orbiting"); + /* let Python know whether NDOF is enabled */ prop = RNA_def_boolean(srna, "use_ndof", true, "", ""); # else |