Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2019-03-06 15:08:38 +0300
committerDalai Felinto <dfelinto@gmail.com>2019-03-06 16:59:32 +0300
commitf1fef41863bc42c070e431c4e65247ac5ed69ff6 (patch)
tree2d9531301f5031e6ec33a96244f7cf152f70e9fc /source
parent8f7e24710ef1718a73565abc5c3880477574a25d (diff)
Fix T62118: Stereo drawing options visible from camera view
Note 1: Volume drawing still draws differently than 2.7x. Note 2: Camera lens widget still ignores stereo.
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/modes/object_mode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c
index b837ffef0db..0fa4d328ebd 100644
--- a/source/blender/draw/modes/object_mode.c
+++ b/source/blender/draw/modes/object_mode.c
@@ -1867,10 +1867,10 @@ static void DRW_shgroup_camera(OBJECT_ShadingGroupList *sgl, Object *ob, ViewLay
cam->runtime.drw_tria[1][0] = shift[0];
cam->runtime.drw_tria[1][1] = shift[1] + ((1.1f * drawsize * (asp[1] + 0.7f)) * scale[1]);
- if (look_through && !is_stereo3d_cameras) {
+ if (look_through) {
/* Only draw the frame. */
float mat[4][4];
- if (is_stereo3d) {
+ if (is_stereo3d_view) {
const bool is_left = v3d->multiview_eye == STEREO_LEFT_ID;
const char *view_name = is_left ? STEREO_LEFT_NAME : STEREO_RIGHT_NAME;
BKE_camera_multiview_model_matrix(&scene->r, ob, view_name, mat);
@@ -1888,7 +1888,7 @@ static void DRW_shgroup_camera(OBJECT_ShadingGroupList *sgl, Object *ob, ViewLay
sgl->camera_frame, color, cam->runtime.drw_corners[0],
&cam->runtime.drw_depth[0], cam->runtime.drw_tria, mat);
}
- else if (!look_through) {
+ else {
if (!is_stereo3d_cameras) {
DRW_shgroup_call_dynamic_add(
sgl->camera, color, cam->runtime.drw_corners[0],
@@ -1944,7 +1944,7 @@ static void DRW_shgroup_camera(OBJECT_ShadingGroupList *sgl, Object *ob, ViewLay
}
/* Stereo cameras drawing. */
- if (is_stereo3d) {
+ if (is_stereo3d && !look_through) {
camera_stereo3d(sgl, scene, view_layer, v3d, ob, cam, vec, drawsize, scale);
}