Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2013-01-07 00:06:53 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2013-01-07 00:06:53 +0400
commita4c6e36aac7b7e99786198ce8a7f9ece5239365e (patch)
tree6223d80c89fcd230cb295941619688a786a86013
parent75f05ebe6278d48ca8503d604f7fc4c805d719a6 (diff)
Fix for r53610, check that ob->sculpt is valid before using it
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c2
1 files changed, 1 insertions, 1 deletions
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;
}