Fixed incorrect accessing to use_restrict as to integer slot instead of boolean
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 20 Feb 2012 14:18:14 +0000 (14:18 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 20 Feb 2012 14:18:14 +0000 (14:18 +0000)
source/blender/bmesh/operators/bmo_create.c

index 39f1ff10a9a52a6546a9387df8ac31347e765d10..6ba0c91fb4d9f62a0d4e42a5e60dac0443ddf20e 100644 (file)
@@ -728,7 +728,7 @@ static EPath *edge_find_shortest_path(BMesh *bm, BMOperator *op, BMEdge *edge, E
        BMVert *startv;
        BMVert *endv;
        EPathNode *node;
-       int i, use_restrict = BMO_slot_int_get(op, "use_restrict");
+       int i, use_restrict = BMO_slot_bool_get(op, "use_restrict");
 
        startv = edata[BM_elem_index_get(edge)].ftag ? edge->v2 : edge->v1;
        endv = edata[BM_elem_index_get(edge)].ftag ? edge->v1 : edge->v2;