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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-02-18 00:46:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-18 00:50:02 +0300
commit4bbd1b9610f6d85079ea5bc31fc1949f8409a1a4 (patch)
treeddeeb08ef557d7591dc861717e9f213748127bf2 /source/blender/blenkernel/intern/camera.c
parentde13d0a80c3cb6a7445245b2999a29fe70e49953 (diff)
Correct own mistake in near/far cleanup
Error in 2f737c4f475a5
Diffstat (limited to 'source/blender/blenkernel/intern/camera.c')
-rw-r--r--source/blender/blenkernel/intern/camera.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/camera.c b/source/blender/blenkernel/intern/camera.c
index 979d31353fa..92281424f99 100644
--- a/source/blender/blenkernel/intern/camera.c
+++ b/source/blender/blenkernel/intern/camera.c
@@ -240,8 +240,9 @@ void BKE_camera_params_from_view3d(CameraParams *params, Depsgraph *depsgraph, c
else if (rv3d->persp == RV3D_ORTHO) {
/* orthographic view */
float sensor_size = BKE_camera_sensor_size(params->sensor_fit, params->sensor_x, params->sensor_y);
- params->clip_end *= 0.5f; // otherwise too extreme low zbuffer quality
- params->clip_start = -params->clip_start;
+ /* Halve, otherwise too extreme low zbuffer quality. */
+ params->clip_end *= 0.5f;
+ params->clip_start = -params->clip_end;
params->is_ortho = true;
/* make sure any changes to this match ED_view3d_radius_to_dist_ortho() */