diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-08-14 15:06:40 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-08-14 15:06:40 +0400 |
commit | a2dfeeaec0f42a209a45f140eecac930624ce4b9 (patch) | |
tree | 1c3230976223e872f82bf8c01d3260814935bc43 /source/blender/editors | |
parent | da60d0889d081c28f9d1f98a20dfe0b8122f1109 (diff) |
Fix crash on texture painting after new scene is added, reported by
kopias on irc, thanks.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c index d1aec130e32..82f918b8cd8 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -1393,7 +1393,7 @@ void paint_proj_mesh_data_ensure(bContext *C, Object *ob, wmOperator *op) } /* Make sure we have a stencil to paint on! */ - if (br->imagepaint_tool == PAINT_TOOL_MASK) { + if (br && br->imagepaint_tool == PAINT_TOOL_MASK) { imapaint->flag |= IMAGEPAINT_PROJECT_LAYER_STENCIL; if (imapaint->stencil == NULL) { |