diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2019-01-11 18:38:18 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2019-01-12 02:51:15 +0300 |
commit | ce3475f747943e031a0f3d99083a959e644530c9 (patch) | |
tree | 8c0447acb49f285f3f50b0bf7db0f6038d39865f /source/blender/makesdna/DNA_camera_types.h | |
parent | ba89b69ebdb47ac81a6081dfd7a1cb0c1e4331a0 (diff) |
Viewport: Stereoscopy drawing is back
The viewport stereoscopy support helpers are finally ported to 2.80.
We now can scale the camera and the "stereo cameras" will scale
in the viewport as well (unlike 2.7x).
At the moment I disabled the drawing of the camera frame when
stereo is selected and you are looking through the camera.
It is to be fixed later, but for now it draws the border wrong.
In 2.79 this was not a problem because the camera frame was drawn
afterwards as a hack.
Viewport > Stereoscopy:
* Cameras
* Convergence plane
* Convergence plane alpha
* Stereoscopy volume
* Stereoscopy volume alpha
Diffstat (limited to 'source/blender/makesdna/DNA_camera_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_camera_types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_camera_types.h b/source/blender/makesdna/DNA_camera_types.h index ab31bb6b9c5..bb80724c01a 100644 --- a/source/blender/makesdna/DNA_camera_types.h +++ b/source/blender/makesdna/DNA_camera_types.h @@ -109,9 +109,9 @@ typedef struct Camera { char pad[7]; /* runtime only, used for drawing */ - float drwcorners[4][2]; + float drwcorners[2][4][2]; float drwtria[2][2]; - float drwdepth, pad1; + float drwdepth[2]; float drwfocusmat[4][4]; float drwnormalmat[4][4]; |