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-03-06 21:23:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-06 21:23:26 +0400
commit7b7214c72233f72268f72d31fd8626a0f94e557e (patch)
treef3d84c26e1f8013d924fca56b4d9184aec046215 /source/blender/editors/mesh/bmesh_tools.c
parentbffeab99aef22181ea6284381b77fcc85833967c (diff)
code cleanup - give edge split more helpful var names and replace edgetag macros with static functions.
Diffstat (limited to 'source/blender/editors/mesh/bmesh_tools.c')
-rw-r--r--source/blender/editors/mesh/bmesh_tools.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/bmesh_tools.c b/source/blender/editors/mesh/bmesh_tools.c
index b1833bc660c..559ad4d4ce2 100644
--- a/source/blender/editors/mesh/bmesh_tools.c
+++ b/source/blender/editors/mesh/bmesh_tools.c
@@ -66,10 +66,12 @@
static void add_normal_aligned(float nor[3], const float add[3])
{
- if (dot_v3v3(nor, add) < -0.9999f)
+ if (dot_v3v3(nor, add) < -0.9999f) {
sub_v3_v3(nor, add);
- else
+ }
+ else {
sub_v3_v3(nor, add);
+ }
}
@@ -2646,8 +2648,9 @@ static int blend_from_shape_exec(bContext *C, wmOperator *op)
mul_v3_fl(co, blend);
add_v3_v3v3(eve->co, eve->co, co);
}
- else
+ else {
interp_v3_v3v3(eve->co, eve->co, co, blend);
+ }
copy_v3_v3(sco, co);
}