Correct own error in recent sculpt changes
authorCampbell Barton <ideasman42@gmail.com>
Sun, 26 Apr 2015 17:34:13 +0000 (03:34 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 26 Apr 2015 17:34:13 +0000 (03:34 +1000)
mixed up squared nonsquared length, also remove invalid verify check.

source/blender/blenkernel/intern/pbvh_bmesh.c

index bc193b74343d83225c6537bb61bacd602a398974..02b8cdba05b144fbb115b0c83eeea088672f60b6 100644 (file)
@@ -799,7 +799,7 @@ static void long_edge_queue_face_add(
                                if (len_sq > eq_ctx->q->limit_len_squared) {
                                        long_edge_queue_edge_add_recursive(
                                                eq_ctx, l_iter->radial_next, l_iter,
-                                               len_sq, eq_ctx->q->limit_len_squared);
+                                               len_sq, eq_ctx->q->limit_len);
                                }
 #else
                                long_edge_queue_edge_add(eq_ctx, l_iter->e);
@@ -1051,11 +1051,6 @@ static bool pbvh_bmesh_subdivide_long_edges(
 {
        bool any_subdivided = false;
 
-#ifdef USE_EDGEQUEUE_TAG_VERIFY
-       pbvh_bmesh_edge_tag_verify(bvh);
-#endif
-
-
        while (!BLI_heap_is_empty(eq_ctx->q->heap)) {
                BMVert **pair = BLI_heap_popmin(eq_ctx->q->heap);
                BMVert *v1 = pair[0], *v2 = pair[1];