From a4c6e36aac7b7e99786198ce8a7f9ece5239365e Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Sun, 6 Jan 2013 20:06:53 +0000 Subject: [PATCH] Fix for r53610, check that ob->sculpt is valid before using it --- source/blender/editors/sculpt_paint/sculpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index f9c874ea073..a9ceebc270a 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -137,7 +137,7 @@ MultiresModifierData *sculpt_multires_active(Scene *scene, Object *ob) Mesh *me = (Mesh *)ob->data; ModifierData *md; - if (ob->sculpt->bm) { + if (ob->sculpt && ob->sculpt->bm) { /* can't combine multires and dynamic topology */ return NULL; }