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-12-09 08:32:05 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-12-09 08:41:54 +0400
commit5bd9730b17658ad4d4b0009a328545409a3c2bc1 (patch)
tree5469321574c91fb32073c6803fd9f41a331c3dc3 /source/blender/editors/object/object_lattice.c
parentb38f645bf1b7b69cff98547abdeaf1b037012d39 (diff)
Lattice API: add BKE_lattice_index_flip, BKE_lattice_bitmap_from_flag
Diffstat (limited to 'source/blender/editors/object/object_lattice.c')
-rw-r--r--source/blender/editors/object/object_lattice.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source/blender/editors/object/object_lattice.c b/source/blender/editors/object/object_lattice.c
index 3425aa08955..6379d23800a 100644
--- a/source/blender/editors/object/object_lattice.c
+++ b/source/blender/editors/object/object_lattice.c
@@ -251,18 +251,13 @@ static int lattice_select_more_less(bContext *C, const bool select)
Lattice *lt = ((Lattice *)obedit->data)->editlatt->latt;
BPoint *bp;
const int tot = lt->pntsu * lt->pntsv * lt->pntsw;
- int i, w, u, v;
+ int u, v, w;
BLI_bitmap *selpoints;
lt->actbp = LT_ACTBP_NONE;
- bp = lt->def;
selpoints = BLI_BITMAP_NEW(tot, __func__);
- for (i = 0; i < tot; i++, bp++) {
- if (bp->f1 & SELECT) {
- BLI_BITMAP_SET(selpoints, i);
- }
- }
+ BKE_lattice_bitmap_from_flag(lt, selpoints, SELECT, false, false);
bp = lt->def;
for (w = 0; w < lt->pntsw; w++) {