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-06-26 08:17:02 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-06-26 08:17:02 +0400
commit7d608452d0c10da9b71ca37cb3bdbdfe0e5ebe36 (patch)
tree526c4711160dc844cfa386db4b24931c6e059ae4 /source/blender/bmesh/operators/bmo_mirror.c
parenta050ddf2791f44e7997944b676f2af31a1e5556f (diff)
bmesh mirror operator was counting layers in inner loop for no good reason.
Diffstat (limited to 'source/blender/bmesh/operators/bmo_mirror.c')
-rw-r--r--source/blender/bmesh/operators/bmo_mirror.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/bmesh/operators/bmo_mirror.c b/source/blender/bmesh/operators/bmo_mirror.c
index cd35ea67914..f1bf3179cd6 100644
--- a/source/blender/bmesh/operators/bmo_mirror.c
+++ b/source/blender/bmesh/operators/bmo_mirror.c
@@ -92,12 +92,11 @@ void bmo_mirror_exec(BMesh *bm, BMOperator *op)
BMFace *f;
BMLoop *l;
MLoopUV *luv;
- int totlayer;
+ const int totlayer = CustomData_number_of_layers(&bm->ldata, CD_MLOOPUV);
BMIter liter;
BMO_ITER (f, &siter, dupeop.slots_out, "geom.out", BM_FACE) {
BM_ITER_ELEM (l, &liter, f, BM_LOOPS_OF_FACE) {
- totlayer = CustomData_number_of_layers(&bm->ldata, CD_MLOOPUV);
for (i = 0; i < totlayer; i++) {
luv = CustomData_bmesh_get_n(&bm->ldata, l->head.data, CD_MLOOPUV, i);
if (mirror_u)