~ubuntu-branches/ubuntu/trusty/blender/trusty-proposed

« back to all changes in this revision

Viewing changes to source/blender/bmesh/operators/bmo_wireframe.c

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-08-14 10:43:49 UTC
  • mfrom: (14.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20130814104349-t1d5mtwkphp12dyj
Tags: 2.68a-3
* Upload to unstable
* debian/: python3.3 Depends simplified
  - debian/control: python3.3 Depends dropped
    for blender-data package
  - 0001-blender_thumbnailer.patch refreshed
* debian/control: libavcodec b-dep versioning dropped

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
/** \file blender/bmesh/operators/bmo_wireframe.c
24
24
 *  \ingroup bmesh
 
25
 *
 
26
 * Creates a solid wireframe from conected faces.
25
27
 */
26
28
 
27
29
#include "MEM_guardedalloc.h"
78
80
        }
79
81
 
80
82
        if (e_a && e_b) {
 
83
                /* note, with an incorrectly flushed selection this can crash */
81
84
                l_a = bm_edge_tag_faceloop(e_a);
82
85
                l_b = bm_edge_tag_faceloop(e_b);
83
86
 
151
154
        return true;
152
155
}
153
156
 
154
 
extern float BM_vert_calc_mean_tagged_edge_length(BMVert *v);
155
 
 
156
157
void bmo_wireframe_exec(BMesh *bm, BMOperator *op)
157
158
{
158
159
        const bool use_boundary        = BMO_slot_bool_get(op->slots_in,  "use_boundary");
217
218
        }
218
219
 
219
220
        /* duplicate tagged verts */
220
 
        for (i = 0, v_src = verts_src[i]; i < totvert_orig; i++, v_src = verts_src[i]) {
 
221
        for (i = 0; i < totvert_orig; i++) {
 
222
                v_src = verts_src[i];
221
223
                if (BM_elem_flag_test(v_src, BM_ELEM_TAG)) {
222
224
                        fac = depth;
223
225