~ubuntu-branches/ubuntu/utopic/blender/utopic-proposed

« back to all changes in this revision

Viewing changes to source/blender/blenkernel/intern/mball.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-02-19 11:24:23 UTC
  • mfrom: (14.2.23 sid)
  • Revision ID: package-import@ubuntu.com-20140219112423-rkmaz2m7ha06d4tk
Tags: 2.69-3ubuntu1
* Merge with Debian; remaining changes:
  - Configure without OpenImageIO on armhf, as it is not available on
    Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 
57
57
/*  #include "BKE_object.h" */
58
58
#include "BKE_animsys.h"
 
59
#include "BKE_curve.h"
59
60
#include "BKE_scene.h"
60
61
#include "BKE_library.h"
61
62
#include "BKE_displist.h"
199
200
                mb->adt = NULL;
200
201
        }
201
202
        if (mb->mat) MEM_freeN(mb->mat);
202
 
        if (mb->bb) MEM_freeN(mb->bb);
203
203
        BLI_freelistN(&mb->elems);
204
204
        if (mb->disp.first) BKE_displist_free(&mb->disp);
205
205
}
233
233
        for (a = 0; a < mbn->totcol; a++) {
234
234
                id_us_plus((ID *)mbn->mat[a]);
235
235
        }
236
 
        mbn->bb = MEM_dupallocN(mb->bb);
237
236
 
238
237
        mbn->editelems = NULL;
239
238
        mbn->lastelem = NULL;
366
365
        (min)[0] = (min)[1] = (min)[2] = 1.0e30f;
367
366
        (max)[0] = (max)[1] = (max)[2] = -1.0e30f;
368
367
 
369
 
        dl = ob->disp.first;
 
368
        dl = ob->curve_cache->disp.first;
370
369
        while (dl) {
371
370
                tot = dl->nr;
372
371
                if (tot) do_it = TRUE;
2281
2280
        }
2282
2281
}
2283
2282
 
2284
 
void BKE_mball_polygonize(Scene *scene, Object *ob, ListBase *dispbase)
 
2283
void BKE_mball_polygonize(Scene *scene, Object *ob, ListBase *dispbase, bool for_render)
2285
2284
{
2286
2285
        MetaBall *mb;
2287
2286
        DispList *dl;
2294
2293
        mball_count(&process, scene, ob);
2295
2294
 
2296
2295
        if (process.totelem == 0) return;
2297
 
        if ((G.is_rendering == FALSE) && (mb->flag == MB_UPDATE_NEVER)) return;
 
2296
        if ((for_render == false) && (mb->flag == MB_UPDATE_NEVER)) return;
2298
2297
        if ((G.moving & (G_TRANSFORM_OBJ | G_TRANSFORM_EDIT)) && mb->flag == MB_UPDATE_FAST) return;
2299
2298
 
2300
2299
        process.thresh = mb->thresh;
2332
2331
        }
2333
2332
 
2334
2333
        /* width is size per polygonize cube */
2335
 
        if (G.is_rendering) {
 
2334
        if (for_render) {
2336
2335
                width = mb->rendersize;
2337
2336
        }
2338
2337
        else {