diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-08-27 17:52:24 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-08-27 17:52:24 +0400 |
commit | 57ccd29caead1d2e07014dc320e3bd8caeaf8436 (patch) | |
tree | 17a04d5452db7071da0e9d80ae0ff66ac03f55e7 /source/blender/editors/sculpt_paint/paint_image.c | |
parent | 4e3f76e06b6654d4951a54804eaa808b040ef942 (diff) |
Only calculate texture paint slots from mtex if renderer is blender
internal.
This should eliminate some confusion when people use external render
engines.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |