[Bf-blender-cvs] [abb78f7] blender-v2.75-release: Correct last commit

Campbell Barton noreply at git.blender.org
Thu Jun 18 17:37:35 CEST 2015


Commit: abb78f74a34782256c25cdba6d1b32f7bcd7f6bd
Author: Campbell Barton
Date:   Wed Jun 17 06:54:35 2015 +1000
Branches: blender-v2.75-release
https://developer.blender.org/rBabb78f74a34782256c25cdba6d1b32f7bcd7f6bd

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 97f9ed1..281ba93 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -5413,7 +5413,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