diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-05 08:18:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-05 08:18:43 +0300 |
commit | 1b928c2d9a4b4b4a57046176912e0ae6d77f9a1d (patch) | |
tree | c19777cbf0b7108f7440a62eea228355488d29b9 /source/blender/editors/sculpt_paint/sculpt.c | |
parent | 56917bcf731c6d3568d920a6ccbec524c25aaea1 (diff) |
Paint: add tool offset & mode to runtime data
It was getting too impractical to call BKE_paint_brush_tool_info
which needed to lookup the scene pointers.
Now each store tool offset and brush mode in 'Paint.runtime'
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index d5e629f205d..84e189a86bf 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -5835,7 +5835,7 @@ static int sculpt_mode_toggle_exec(bContext *C, wmOperator *op) } else { ED_object_sculptmode_enter_ex(bmain, depsgraph, scene, ob, op->reports); - BKE_paint_toolslots_brush_validate(bmain, scene, &ts->sculpt->paint); + BKE_paint_toolslots_brush_validate(bmain, &ts->sculpt->paint); } WM_event_add_notifier(C, NC_SCENE | ND_MODE, scene); |