Tool System: per space/mode tool support
[blender.git] / source / blender / editors / sculpt_paint / paint_vertex.c
index 196505c9542b16ed186ef9553394d7101c023973..3c3df2067ab98617d5f4bf0218f99e1bd00bd8bf 100644 (file)
@@ -1252,6 +1252,8 @@ static int wpaint_mode_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;
 }
 
@@ -2386,6 +2388,8 @@ static int vpaint_mode_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;
 }