diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-28 11:00:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-28 11:00:53 +0400 |
commit | f1d680d4b5406b65518df5e29ea3b62229077219 (patch) | |
tree | 679a9a8749129ca4deedcd079800c29fa6622922 | |
parent | d95887d756a7d869ed7089506a38149cec64255d (diff) |
fix for crash when multires subdividing a mesh with no faces (new bug in bmesh grr!)
-rw-r--r-- | source/blender/blenkernel/intern/multires.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/multires.c b/source/blender/blenkernel/intern/multires.c index e2142c393a5..d7212e5eaf9 100644 --- a/source/blender/blenkernel/intern/multires.c +++ b/source/blender/blenkernel/intern/multires.c @@ -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); |