Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-09-24 01:30:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-24 01:34:05 +0300
commit2abbe1d125f75ba6beb90ea8b3024107da4f1a1e (patch)
tree76d666e9f1113a3bac526bb6a8e4cb3f5dbd2ca3 /source/blender
parent0e65c4839c407c4c117a75e9e9376b5b02ed68b5 (diff)
Cleanup: skip translation to calculate length
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/mesh/editmesh_select_similar.c6
1 files changed, 2 insertions, 4 deletions
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);
}