From edf6676a77b30290918e60547544bc1a6f7a8838 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 16 May 2018 18:41:11 +0200 Subject: Tool System: per space/mode tool support This patch adds support for: - Per space-type tools (3D view and edit). - Per mode tools (object, edit, weight-paint .. etc). The top-bar shows the last activated tools options, this is a design issue with using a global topbar to show per-space settings. See D3395 --- 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 cbf755d26b5..6a32fdecfad 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -1136,6 +1136,8 @@ static int texture_paint_toggle_exec(bContext *C, wmOperator *op) WM_msg_publish_rna_prop(mbus, &ob->id, ob, Object, mode); + WM_toolsystem_update_from_context_view3d(C); + return OPERATOR_FINISHED; } -- cgit v1.2.3