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-07-23 22:06:29 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-07-23 22:06:41 +0400
commitaf162658e1270b7442eb064360d1bec75c621c1a (patch)
tree638cae16abc9b10dae39763a7df0bd3a9890f228 /source/blender/blenkernel/intern/material.c
parent1f55044617d167e81bc56cc359a1adf886045447 (diff)
Texture painting:
Add ability to select UV layer from the layer panel.
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r--source/blender/blenkernel/intern/material.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index 27330fb8db3..b4ab464838e 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -1388,7 +1388,7 @@ 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;
- BLI_strncpy(ma->texpaintslot[index++].uvname, (*mtex)->uvname, 64);
+ ma->texpaintslot[index++].uvname = (*mtex)->uvname;
}
}
}