From c80415627e9c8e1d4eb74a34a0916126a0e9fc1a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 6 Mar 2019 21:48:22 +1100 Subject: Fix T62223: Particle brushes disable select tools --- source/blender/editors/physics/particle_edit.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/physics') diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index f9b30de5dc5..a3173136783 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -2919,6 +2919,10 @@ static void brush_drawcursor(bContext *C, int x, int y, void *UNUSED(customdata) return; } + if (!WM_toolsystem_active_tool_is_brush(C)) { + return; + } + brush = &pset->brush[pset->brushtype]; if (brush) { @@ -4084,8 +4088,13 @@ static int brush_edit_init(bContext *C, wmOperator *op) BrushEdit *bedit; float min[3], max[3]; - if (pset->brushtype < 0) + if (pset->brushtype < 0) { + return 0; + } + + if (!WM_toolsystem_active_tool_is_brush(C)) { return 0; + } /* set the 'distance factor' for grabbing (used in comb etc) */ INIT_MINMAX(min, max); -- cgit v1.2.3