diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-01 07:45:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-01 07:45:31 +0400 |
commit | a5367802acee857d4b36eb8c6ed2eef4c9ec17a8 (patch) | |
tree | 2d78bc0d1c22edf72710b903b17f356caf98bf05 /source | |
parent | fb2f24972308192cec68a20769eaa2f72fe61032 (diff) |
fix for crash deleting higher multi-res levels without mask data.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/multires.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/multires.c b/source/blender/blenkernel/intern/multires.c index 1c06d95a70b..245fa4aa375 100644 --- a/source/blender/blenkernel/intern/multires.c +++ b/source/blender/blenkernel/intern/multires.c @@ -666,7 +666,9 @@ static void multires_del_higher(MultiresModifierData *mmd, Object *ob, int lvl) mdisp->totdisp = totdisp; mdisp->level = lvl; - multires_grid_paint_mask_downsample(&gpm[g], lvl); + if (gpm) { + multires_grid_paint_mask_downsample(&gpm[g], lvl); + } } } } |