[Bf-blender-cvs] [4bbd1b9610f] master: Correct own mistake in near/far cleanup

Campbell Barton noreply at git.blender.org
Sun Feb 17 22:50:19 CET 2019


Commit: 4bbd1b9610f6d85079ea5bc31fc1949f8409a1a4
Author: Campbell Barton
Date:   Mon Feb 18 08:46:10 2019 +1100
Branches: master
https://developer.blender.org/rB4bbd1b9610f6d85079ea5bc31fc1949f8409a1a4

Correct own mistake in near/far cleanup

Error in 2f737c4f475a5

===================================================================

M	source/blender/blenkernel/intern/camera.c

===================================================================

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() */



More information about the Bf-blender-cvs mailing list