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-09-04 22:47:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-04 22:47:08 +0400
commit306e2b48786bc27d818c1ee04382cf654310c3a0 (patch)
tree8d719a1b77390a1ddf77ade3378292297829ddb9 /source/blender/editors/mesh
parent068cceab6c491ddbe3a3baec560900a57db279b2 (diff)
stule cleanup
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r--source/blender/editors/mesh/editmesh_knife.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index 8f08c3afc36..7ecfb712c18 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -555,7 +555,7 @@ static int verge_linehit(const void *vlh1, const void *vlh2)
}
/* If there's a linehit connected (same face) as testi in range [firsti, lasti], return the first such, else -1.
- * If testi is out of range, look for connection to f instead, if f is non-NULL */
+ * If testi is out of range, look for connection to f instead, if f is non-NULL */
static int find_connected_linehit(KnifeTool_OpData *kcd, int testi, BMFace *f, int firsti, int lasti)
{
int i;
@@ -563,9 +563,10 @@ static int find_connected_linehit(KnifeTool_OpData *kcd, int testi, BMFace *f, i
for (i = firsti; i <= lasti; i++) {
if (testi >= 0 && testi < kcd->totlinehit) {
if (knife_find_common_face(&kcd->linehits[testi].kfe->faces,
- &kcd->linehits[i].kfe->faces))
+ &kcd->linehits[i].kfe->faces))
return i;
- } else if (f) {
+ }
+ else if (f) {
if (find_ref(&kcd->linehits[i].kfe->faces, f))
return i;
}
@@ -582,9 +583,9 @@ static void knife_sort_linehits(KnifeTool_OpData *kcd)
/* for ranges of equal "l", swap if neccesary to make predecessor and
* successor faces connected to the linehits at either end of the range */
- for (i = 0; i < kcd->totlinehit -1; i = nexti) {
+ for (i = 0; i < kcd->totlinehit - 1; i = nexti) {
for (j = i + 1; j < kcd->totlinehit; j++) {
- if (fabsf(kcd->linehits[j].l - kcd->linehits[i].l) > 80*FLT_EPSILON)
+ if (fabsf(kcd->linehits[j].l - kcd->linehits[i].l) > 80 * FLT_EPSILON)
break;
}
nexti = j;