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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-16 00:25:07 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-16 00:25:07 +0400
commit2c895318e91727f867225597d990bb712de87918 (patch)
tree1b3b0813b990eb7e7ea01821d5bc445cef43db96 /source
parentc9d0de49b9d5c42d8d1f04a9d712c0d7bb0a5673 (diff)
quiet debug print(), reported as [#30552], but infact is harmless.
Diffstat (limited to 'source')
-rw-r--r--source/blender/bmesh/operators/bmo_create.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/bmesh/operators/bmo_create.c b/source/blender/bmesh/operators/bmo_create.c
index 2a26384de24..2fb48ef0f32 100644
--- a/source/blender/bmesh/operators/bmo_create.c
+++ b/source/blender/bmesh/operators/bmo_create.c
@@ -524,10 +524,15 @@ static void init_rotsys(BMesh *bm, EdgeData *edata, VertData *vdata)
s3 = (totedge < 3) ? 0 : (dot_v3v3(n3, n3) < (0.0f + FLT_EPSILON * 10));
normalize_v3(n1); normalize_v3(n2); normalize_v3(n3);
-
+
+ /* this case happens often enough and probably not worth bothering users with,
+ * maybe enable for debugging code but not for everyday use - campbell */
+#if 0
if (s1 || s2 || s3) {
fprintf(stderr, "%s: s1: %d, s2: %d, s3: %dx (bmesh internal error)\n", __func__, s1, s2, s3);
}
+#endif
+
if (dot_v3v3(n1, n2) < 0.0f) {
if (dot_v3v3(n1, n3) >= 0.0f + FLT_EPSILON * 10) {
SWAP(BMEdge *, edges[i], edges[(i + 1) % totedge]);