diff options
author | Peter Kim <pk15950@gmail.com> | 2022-04-30 10:23:43 +0300 |
---|---|---|
committer | Peter Kim <pk15950@gmail.com> | 2022-04-30 10:23:43 +0300 |
commit | 5c92c04518b5dc7c57c3b3a9e81b45879af2e080 (patch) | |
tree | 7c4f0dee8132ae57fc896989f8e7d5839460c9d1 /source/blender/makesdna/DNA_xr_types.h | |
parent | 2fc6563a597ad8877fea5e580c87eb4e13e58961 (diff) |
XR: Add object extras, object types visibility session options
This allows object extras such as image-empties to be shown in the VR
viewport/headset display. Being able to see reference images in VR can
be useful for architectural walkthroughs and 3D modeling applications.
Since users may not want to see all object extras (lights, cameras,
etc.), per-object-type visibility settings are also added as session
options.
By slightly refactoring the definition of the 3D View object types
visibility panel (note: no functional changes), the VR Scene Inspection
add-on can show a similar panel without duplicating code. When VR
selection is possible in the future, the object type select options can
also be enabled.
Reviewed By: Severin
Differential Revision: https://developer.blender.org/D14220
Diffstat (limited to 'source/blender/makesdna/DNA_xr_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_xr_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_xr_types.h b/source/blender/makesdna/DNA_xr_types.h index 09eab0d7bf7..44419c9763f 100644 --- a/source/blender/makesdna/DNA_xr_types.h +++ b/source/blender/makesdna/DNA_xr_types.h @@ -36,6 +36,10 @@ typedef struct XrSessionSettings { float clip_start, clip_end; int flag; + + /** Object type settings to apply to VR view (unlike shading, not shared with window 3D-View). */ + int object_type_exclude_viewport; + int object_type_exclude_select; } XrSessionSettings; typedef enum eXrSessionFlag { |