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-27 21:15:14 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-08-27 21:15:41 +0400
commit63b981bf9bae1ad6c3929a32107dcb09caf1ec45 (patch)
tree1c8aff2406cf1b1ce8d613ba58d720148188da50 /source/blender/blenkernel/intern/material.c
parentef2a38a9665c3f39ccdead8e1177f9b9c2e92538 (diff)
Changing render engine now refreshes the texture paint display better.
Also avoid looping over all objects for texture paint checks when a material changes, only check active object.
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r--source/blender/blenkernel/intern/material.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index 81b93a47917..7565703358e 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -1307,19 +1307,6 @@ bool object_remove_material_slot(Object *ob)
return true;
}
-void BKE_texpaint_slots_clear(struct Material *ma)
-{
-
- if (ma->texpaintslot) {
- MEM_freeN(ma->texpaintslot);
- ma->texpaintslot = NULL;
- }
- ma->tot_slots = 0;
- ma->paint_active_slot = 0;
- ma->paint_clone_slot = 0;
-}
-
-
static bool get_mtex_slot_valid_texpaint(struct MTex *mtex)
{
return (mtex && (mtex->texco == TEXCO_UV) &&