From 888a0735eee5fbe05fc60d8755d83974a2f74680 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 3 Nov 2018 16:52:06 +1100 Subject: Tool System: validate tool slots when setting modes Needed for entering paint modes on new scenes. --- source/blender/editors/sculpt_paint/paint_image.c | 2 ++ 1 file changed, 2 insertions(+) (limited to '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 aaf82d8ef2b..be51c8071c2 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -1132,6 +1132,8 @@ static int texture_paint_toggle_exec(bContext *C, wmOperator *op) BKE_paint_init(bmain, scene, ePaintTextureProjective, PAINT_CURSOR_TEXTURE_PAINT); + BKE_paint_toolslots_brush_validate(bmain, scene, &imapaint->paint); + if (U.glreslimit != 0) GPU_free_images(bmain); GPU_paint_set_mipmap(bmain, 0); -- cgit v1.2.3