[Bf-blender-cvs] [2689247] master: Correct last commit

Campbell Barton noreply at git.blender.org
Tue Jun 16 22:59:03 CEST 2015


Commit: 2689247f980ad4076cec70096969e092d401a133
Author: Campbell Barton
Date:   Wed Jun 17 06:54:35 2015 +1000
Branches: master
https://developer.blender.org/rB2689247f980ad4076cec70096969e092d401a133

Correct last commit

avoid sqrt

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

M	source/blender/editors/transform/transform.c

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

diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index e23511b..e069a2f 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -5417,7 +5417,7 @@ static void slide_origdata_interp_data_vert(
 				co_next = slide_origdata_orig_vert_co(sod, l_next->v);
 			}
 
-			if (co_prev_ok && co_next_ok && (area_tri_v3(co_prev, sv->co_orig_3d, co_next) > eps)) {
+			if (co_prev_ok && co_next_ok && (area_squared_tri_v3(co_prev, sv->co_orig_3d, co_next) > eps)) {
 				const float dist = dist_signed_squared_to_corner_v3v3v3(
 				        sv->v->co, co_prev, sv->co_orig_3d, co_next, f_copy->no);
 				loop_weights[j] = (dist >= 0.0f) ? 1.0f : ((dist <= -eps) ? 0.0f : (1.0f + (dist / eps)));




More information about the Bf-blender-cvs mailing list