[Bf-blender-cvs] [10f7f4ec142] blender2.8: Fix unreported error: Algorithm for extracting the Bounding Sphere from an Orthographic frustum was incorrect.

Germano noreply at git.blender.org
Mon Apr 16 16:42:29 CEST 2018


Commit: 10f7f4ec1429f8bee0db128df027bdf2658b4338
Author: Germano
Date:   Mon Apr 16 11:42:20 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB10f7f4ec1429f8bee0db128df027bdf2658b4338

Fix unreported error: Algorithm for extracting the Bounding Sphere from an Orthographic frustum was incorrect.

There was double transformation.

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

M	source/blender/draw/intern/draw_manager_exec.c

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

diff --git a/source/blender/draw/intern/draw_manager_exec.c b/source/blender/draw/intern/draw_manager_exec.c
index 5f2b7a3c4e0..5671e8374fb 100644
--- a/source/blender/draw/intern/draw_manager_exec.c
+++ b/source/blender/draw/intern/draw_manager_exec.c
@@ -486,9 +486,6 @@ static void draw_clipping_setup_from_view(void)
 		float *nearpoint = bbox.vec[0];
 		float *farpoint = bbox.vec[6];
 
-		mul_project_m4_v3(projinv, nearpoint);
-		mul_project_m4_v3(projinv, farpoint);
-
 		/* just use median point */
 		mid_v3_v3v3(bsphere->center, farpoint, nearpoint);
 		bsphere->radius = len_v3v3(bsphere->center, farpoint);



More information about the Bf-blender-cvs mailing list