error in own recent commit
authorCampbell Barton <ideasman42@gmail.com>
Mon, 11 Feb 2013 15:35:38 +0000 (15:35 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 11 Feb 2013 15:35:38 +0000 (15:35 +0000)
source/blender/blenkernel/intern/mball.c

index 867249c97dd8264fd5da7cfc7647ec3d965ad504..5cc3145213c67a1af7aad82d102ee07c80f9d2df 100644 (file)
@@ -1791,14 +1791,15 @@ static float init_meta(Scene *scene, Object *ob)    /* return totsize */
                                                }
 
                                                /* untransformed Bounding Box of MetaElem */
+                                               /* TODO, its possible the elem type has been changed and the exp* values can use a fallback */
                                                copy_v3_fl3(G_mb.mainb[a]->bb->vec[0], -expx, -expy, -expz);  /* 0 */
                                                copy_v3_fl3(G_mb.mainb[a]->bb->vec[1], +expx, -expy, -expz);  /* 1 */
                                                copy_v3_fl3(G_mb.mainb[a]->bb->vec[2], +expx, +expy, -expz);  /* 2 */
                                                copy_v3_fl3(G_mb.mainb[a]->bb->vec[3], -expx, +expy, -expz);  /* 3 */
                                                copy_v3_fl3(G_mb.mainb[a]->bb->vec[4], -expx, -expy, +expz);  /* 4 */
                                                copy_v3_fl3(G_mb.mainb[a]->bb->vec[5], +expx, -expy, +expz);  /* 5 */
-                                               copy_v3_fl3(G_mb.mainb[a]->bb->vec[5], +expx, +expy, +expz);  /* 6 */
-                                               copy_v3_fl3(G_mb.mainb[a]->bb->vec[5], -expx, +expy, +expz);  /* 7 */
+                                               copy_v3_fl3(G_mb.mainb[a]->bb->vec[6], +expx, +expy, +expz);  /* 6 */
+                                               copy_v3_fl3(G_mb.mainb[a]->bb->vec[7], -expx, +expy, +expz);  /* 7 */
 
                                                /* transformation of Metalem bb */
                                                for (i = 0; i < 8; i++)