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>2013-03-25 06:41:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-25 06:41:30 +0400
commite1a54214bbed9b32e1aee0e849ae654c495afa80 (patch)
treea95eaa2b98e7baa7e91fa34db46571e531b1cfb3 /source/blender/bmesh
parent153eea5f23e2f0060d89a701ddd9b48085fc6070 (diff)
code cleanup:
- remove unused defines. - quiet some shadow warnings. - bevel, ifdef out some asserts that are too common. - style
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r--source/blender/bmesh/tools/bmesh_bevel.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c
index f685b741176..525bf3a2da7 100644
--- a/source/blender/bmesh/tools/bmesh_bevel.c
+++ b/source/blender/bmesh/tools/bmesh_bevel.c
@@ -43,11 +43,12 @@
#include "bmesh.h"
#include "./intern/bmesh_private.h"
-
-
#define BEVEL_EPSILON_D 1e-6
#define BEVEL_EPSILON 1e-6f
+/* happens far too often, uncomment for development */
+// #define BEVEL_ASSERT_PROJECT
+
/* for testing */
// #pragma GCC diagnostic error "-Wpadded"
@@ -369,7 +370,9 @@ static void offset_meet(EdgeHalf *e1, EdgeHalf *e2, BMVert *v, BMFace *f,
/* intersect the lines; by construction they should be on the same plane and not parallel */
if (!isect_line_line_v3(off1a, off1b, off2a, off2b, meetco, isect2)) {
+#ifdef BEVEL_ASSERT_PROJECT
BLI_assert(!"offset_meet failure");
+#endif
copy_v3_v3(meetco, off1a); /* just to do something */
}
}
@@ -485,7 +488,9 @@ static void project_to_edge(BMEdge *e, const float co_a[3], const float co_b[3],
float otherco[3];
if (!isect_line_line_v3(e->v1->co, e->v2->co, co_a, co_b, projco, otherco)) {
+#ifdef BEVEL_ASSERT_PROJECT
BLI_assert(!"project meet failure");
+#endif
copy_v3_v3(projco, e->v1->co);
}
}