[Bf-blender-cvs] [3b04a867b92] master: Cleanup: correct comment

Campbell Barton noreply at git.blender.org
Tue Mar 19 17:17:11 CET 2019


Commit: 3b04a867b928cba3fe167a9d563de662618d4af3
Author: Campbell Barton
Date:   Wed Mar 20 03:14:50 2019 +1100
Branches: master
https://developer.blender.org/rB3b04a867b928cba3fe167a9d563de662618d4af3

Cleanup: correct comment

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

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 98808fc6df3..b4504626990 100644
--- a/source/blender/editors/mesh/editmesh_select_similar.c
+++ b/source/blender/editors/mesh/editmesh_select_similar.c
@@ -138,10 +138,7 @@ static bool face_data_value_set(BMFace *face, const int hflag, int *r_value)
 }
 
 /**
- * Note: This is not normal, but the face direction itself and always in
- * a positive quadrant (tries z, y then x).
- * Also, unlike edge_pos_direction_worldspace_get we don't normalize the direction.
- * In fact we scale the direction by the distance of the face center to the origin.
+ * World space normalized plane from a face.
  */
 static void face_to_plane(const Object *ob, BMFace *face, float r_plane[4])
 {
@@ -151,7 +148,6 @@ static void face_to_plane(const Object *ob, BMFace *face, float r_plane[4])
 	normalize_v3(normal);
 	mul_v3_m4v3(co, ob->obmat, BM_FACE_FIRST_LOOP(face)->v->co);
 	plane_from_point_normal_v3(r_plane, co, normal);
-
 }
 
 /* TODO(dfelinto): `types` that should technically be compared in world space but are not:



More information about the Bf-blender-cvs mailing list