Fix for r53610, check that ob->sculpt is valid before using it

This commit is contained in:
Nicholas Bishop 2013-01-06 20:06:53 +00:00
parent 75f05ebe62
commit a4c6e36aac

@ -137,7 +137,7 @@ MultiresModifierData *sculpt_multires_active(Scene *scene, Object *ob)
Mesh *me = (Mesh *)ob->data; Mesh *me = (Mesh *)ob->data;
ModifierData *md; ModifierData *md;
if (ob->sculpt->bm) { if (ob->sculpt && ob->sculpt->bm) {
/* can't combine multires and dynamic topology */ /* can't combine multires and dynamic topology */
return NULL; return NULL;
} }