diff options
author | Julian Eisel <julian@blender.org> | 2020-03-17 17:43:12 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-03-17 17:44:41 +0300 |
commit | 1792bf1c0a1c1b6944eb95f979ee5fe55f0df887 (patch) | |
tree | fe837409a8420531206d5181f201b729ad36e43d /source/blender/makesdna/DNA_view3d_types.h | |
parent | cd083a67c2fa44fb848403a360d8cde287b13146 (diff) |
Always sync VR view shading with the 3D View the session was started in
Added a notifier subtype so that we can avoid unnecesarry updates of the
VR shading settings.
The VR session now needs to be invoked from a 3D View.
Diffstat (limited to 'source/blender/makesdna/DNA_view3d_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_view3d_types.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h index b56f587b9cf..65a7016e69b 100644 --- a/source/blender/makesdna/DNA_view3d_types.h +++ b/source/blender/makesdna/DNA_view3d_types.h @@ -234,6 +234,10 @@ typedef struct View3DOverlay { typedef struct View3D_Runtime { /** Nkey panel stores stuff here. */ void *properties_storage; + /** Runtime only flags. */ + int flag; + + char _pad1[4]; } View3D_Runtime; /** 3D ViewPort Struct. */ @@ -352,6 +356,12 @@ typedef struct View3D { #define V3D_GLOBAL_STATS (1 << 13) #define V3D_DRAW_CENTERS (1 << 15) +/** #View3D_Runtime.flag */ +enum { + /** The 3D view which the XR session was created in is flagged with this. */ + V3D_RUNTIME_XR_SESSION_ROOT = (1 << 0), +}; + /** #RegionView3D.persp */ #define RV3D_ORTHO 0 #define RV3D_PERSP 1 |