Commit: 2abbe1d125f75ba6beb90ea8b3024107da4f1a1e
Author: Campbell Barton
Date:   Mon Sep 24 08:30:15 2018 +1000
Branches: blender2.8
https://developer.blender.org/rB2abbe1d125f75ba6beb90ea8b3024107da4f1a1e

Cleanup: skip translation to calculate length

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

M       source/blender/editors/mesh/editmesh_select_similar.c

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

diff --git a/source/blender/editors/mesh/editmesh_select_similar.c 
b/source/blender/editors/mesh/editmesh_select_similar.c
index b589b88a69e..aa917f0d529 100644
--- a/source/blender/editors/mesh/editmesh_select_similar.c
+++ b/source/blender/editors/mesh/editmesh_select_similar.c
@@ -252,11 +252,9 @@ static void edge_pos_direction_worldspace_get(Object *ob, 
BMEdge *edge, float *r
 static float edge_length_squared_worldspace_get(Object *ob, BMEdge *edge)
 {
        float v1[3], v2[3];
-       copy_v3_v3(v1, edge->v1->co);
-       copy_v3_v3(v2, edge->v2->co);
 
-       mul_m4_v3(ob->obmat, v1);
-       mul_m4_v3(ob->obmat, v2);
+       mul_v3_mat3_m4v3(v1, ob->obmat, edge->v1->co);
+       mul_v3_mat3_m4v3(v2, ob->obmat, edge->v2->co);
 
        return len_squared_v3v3(v1, v2);
 }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to