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>2012-02-26 00:58:03 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-26 00:58:03 +0400
commit98aececc8e61e7d6d9225e59ab10d27da9498953 (patch)
treecee5dfeb04d4c0016dadaeabcfad5428ac7e692c /source/blender/bmesh/intern/bmesh_polygon.c
parent4f4bba39fb0da31bb4adad7e5110f98f85e59ebe (diff)
bmesh code cleanup
* change BMO_elem_flag_* defines to inline functions. * BMO_slot_map_insert() is too big for an inline function - un-inline it. * remove redundant casts.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_polygon.c')
-rw-r--r--source/blender/bmesh/intern/bmesh_polygon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/bmesh/intern/bmesh_polygon.c b/source/blender/bmesh/intern/bmesh_polygon.c
index 19b13a00f6d..c511193209e 100644
--- a/source/blender/bmesh/intern/bmesh_polygon.c
+++ b/source/blender/bmesh/intern/bmesh_polygon.c
@@ -135,12 +135,12 @@ static void compute_poly_normal(float normal[3], float (*verts)[3], int nverts)
so thats?:
(a[1] - b[1]) * (a[2] + b[2]);
- a[1]*b[2] - b[1]*a[2] - b[1]*b[2] + a[1]*a[2]
+ a[1] * b[2] - b[1] * a[2] - b[1] * b[2] + a[1] * a[2]
odd. half of that is the cross product. . .what's the
other half?
- also could be like a[1]*(b[2] + a[2]) - b[1]*(a[2] - b[2])
+ also could be like a[1] * (b[2] + a[2]) - b[1] * (a[2] - b[2])
*/
n[0] += (u[1] - v[1]) * (u[2] + v[2]);