From 1b928c2d9a4b4b4a57046176912e0ae6d77f9a1d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 5 Nov 2018 16:18:43 +1100 Subject: 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' --- source/blender/editors/sculpt_paint/paint_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 be51c8071c2..4bd625c3cc6 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -1132,7 +1132,7 @@ 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); + BKE_paint_toolslots_brush_validate(bmain, &imapaint->paint); if (U.glreslimit != 0) GPU_free_images(bmain); -- cgit v1.2.3