forked from bartvdbraak/blender
Fix crash on texture painting after new scene is added, reported by
kopias on irc, thanks.
This commit is contained in:
parent
da60d0889d
commit
a2dfeeaec0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user