diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-14 05:01:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-14 05:01:08 +0400 |
commit | 9bd1e46b4a31ee19834b39ec997f746307486941 (patch) | |
tree | 719d2201ff34b538108baeea1a5f50b47d31ac2b /source/blender/makesrna/intern/rna_sculpt_paint.c | |
parent | 42f987236363b443a523e4df929b8a05a9cbb27b (diff) |
add missing NULL checks - could cause crashes in rare cases.
Diffstat (limited to 'source/blender/makesrna/intern/rna_sculpt_paint.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_sculpt_paint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_sculpt_paint.c b/source/blender/makesrna/intern/rna_sculpt_paint.c index 5aa4fa81076..e0687295c70 100644 --- a/source/blender/makesrna/intern/rna_sculpt_paint.c +++ b/source/blender/makesrna/intern/rna_sculpt_paint.c @@ -236,7 +236,7 @@ static void rna_Sculpt_ShowDiffuseColor_update(Main *UNUSED(bmain), Scene *scene { Object *ob = (scene->basact) ? scene->basact->object : NULL; - if (ob) { + if (ob && ob->sculpt) { Sculpt *sd = scene->toolsettings->sculpt; ob->sculpt->show_diffuse_color = sd->flags & SCULPT_SHOW_DIFFUSE; |