diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-03 08:52:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-03 08:52:06 +0300 |
commit | 888a0735eee5fbe05fc60d8755d83974a2f74680 (patch) | |
tree | 3ff8fb4e0712303b36ec7ddf9cbd6bf0c072e35e /source/blender/editors/sculpt_paint/paint_image.c | |
parent | 13c3c9b22fd8453d4418577efbc2ccb93209e92e (diff) |
Tool System: validate tool slots when setting modes
Needed for entering paint modes on new scenes.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |