diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-07-24 14:01:25 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-07-24 14:01:25 +0400 |
commit | 029be6f4b58f9af01dda9e8974a6d1a275ef5c4a (patch) | |
tree | 09f1ed7f6663e5e8950204b4dd72594748367830 /source/blender/editors/sculpt_paint/paint_image.c | |
parent | cc40925c360fe031a623311045e1b74b4618629f (diff) |
Change to previous commit, allow tweaking name at creation time.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c index 21def9fe6d4..f1a2a8156d8 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -1372,7 +1372,7 @@ void paint_proj_mesh_data_ensure(bContext *C, Object *ob, wmOperator *op) if (ma) { has_material = true; if (!ma->texpaintslot) { - proj_paint_add_slot(C, MAP_COL, ma, NULL); + proj_paint_add_slot(C, ma, NULL); } } } @@ -1385,7 +1385,7 @@ void paint_proj_mesh_data_ensure(bContext *C, Object *ob, wmOperator *op) Material *ma = BKE_material_add(CTX_data_main(C), "Material"); /* no material found, just assign to first slot */ assign_material(ob, ma, 1, BKE_MAT_ASSIGN_USERPREF); - proj_paint_add_slot(C, MAP_COL, ma, NULL); + proj_paint_add_slot(C, ma, NULL); } me = BKE_mesh_from_object(ob); |