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:
authorAntony Riakiotakis <kalast@gmail.com>2014-08-14 15:06:40 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-08-14 15:06:40 +0400
commita2dfeeaec0f42a209a45f140eecac930624ce4b9 (patch)
tree1c3230976223e872f82bf8c01d3260814935bc43 /source/blender/editors/sculpt_paint
parentda60d0889d081c28f9d1f98a20dfe0b8122f1109 (diff)
Fix crash on texture painting after new scene is added, reported by
kopias on irc, thanks.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image.c2
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) {