From 57ccd29caead1d2e07014dc320e3bd8caeaf8436 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Wed, 27 Aug 2014 15:52:24 +0200 Subject: Only calculate texture paint slots from mtex if renderer is blender internal. This should eliminate some confusion when people use external render engines. --- source/blender/editors/sculpt_paint/paint_image.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (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 0ec813c2631..ded8a83a66c 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -1445,10 +1445,9 @@ static int texture_paint_toggle_exec(bContext *C, wmOperator *op) Main *bmain = CTX_data_main(C); Material *ma; - bool use_nodes = BKE_scene_use_new_shading_nodes(scene); /* This has to stay here to regenerate the texture paint * cache in case we are loading a file */ - BKE_texpaint_slots_refresh_object(ob, use_nodes); + BKE_texpaint_slots_refresh_object(scene, ob); paint_proj_mesh_data_ensure(C, ob, op); -- cgit v1.2.3