fix for crash when multires subdividing a mesh with no faces (new bug in bmesh grr!)

This commit is contained in:
Campbell Barton 2012-04-28 07:00:53 +00:00
parent d95887d756
commit f1d680d4b5

@ -835,7 +835,7 @@ static void multires_subdivide(MultiresModifierData *mmd, Object *ob, int totlvl
MDisps *mdisps;
int lvl= mmd->totlvl;
if (totlvl > multires_max_levels)
if ((totlvl > multires_max_levels) || (me->totpoly == 0))
return;
multires_force_update(ob);