Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2014-08-26 21:00:25 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-08-26 21:00:25 +0400
commitdb844959d18e21e8fbb6f1f3a425b757d0dcb05b (patch)
tree95ed6ec8437fa7fcc000d21b79503489ec8247a6 /source/blender/blenkernel/intern/material.c
parentfb3f32760d68134aadb7978922360857f0ecccb7 (diff)
Add operator that deletes a texture paint layer for blender internal.
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r--source/blender/blenkernel/intern/material.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index ab33c2b740d..6daf000aae3 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -1388,7 +1388,10 @@ void BKE_texpaint_slot_refresh_cache(Material *ma, bool use_nodes)
for (mtex = ma->mtex, i = 0; i < MAX_MTEX; i++, mtex++) {
if (get_mtex_slot_valid_texpaint(*mtex)) {
ma->texpaintslot[index].ima = (*mtex)->tex->ima;
- ma->texpaintslot[index++].uvname = (*mtex)->uvname;
+ ma->texpaintslot[index].uvname = (*mtex)->uvname;
+ ma->texpaintslot[index].mtex = *mtex;
+
+ index++;
}
}
}