Commit: a2dfeeaec0f42a209a45f140eecac930624ce4b9
Author: Antony Riakiotakis
Date: Thu Aug 14 13:06:40 2014 +0200
Branches: master
https://developer.blender.org/rBa2dfeeaec0f42a209a45f140eecac930624ce4b9
Fix crash on texture painting after new scene is added, reported by
kopias on irc, thanks.
===================================================================
M source/blender/editors/sculpt_paint/paint_image.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/paint_image.c
b/source/blender/editors/sculpt_paint/paint_image.c
index d1aec13..82f918b 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) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs