merge with 2.5 (not trunk, last merge message said that on accident) at r22252
[blender.git] / source / blender / editors / transform / transform_manipulator.c
index 4a27a7864b7e727610c097464d24b103d62279cc..b999053bc1f357f0e8f72c90f96c736fb89d3d9f 100644 (file)
@@ -304,11 +304,10 @@ int calc_manipulator_stats(const bContext *C)
                        }
                }
                else if(obedit->type==OB_MBALL) {
-                       /* editmball.c */
-                       ListBase editelems= {NULL, NULL};  /* XXX */
+                       MetaBall *mb = (MetaBall*)obedit->data;
                        MetaElem *ml, *ml_sel=NULL;
 
-                       ml= editelems.first;
+                       ml= mb->editelems->first;
                        while(ml) {
                                if(ml->flag & SELECT) {
                                        calc_tw_center(scene, &ml->x);