diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-08-22 21:22:04 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-08-22 21:22:04 +0400 |
commit | b0dd030ba61fe81914d14e520f710684a2406900 (patch) | |
tree | f4f0027962b9aff73220bdeda00a974794875b1b /source/blender/blenkernel/BKE_material.h | |
parent | 1939baa47d6d6cd6cedb7440bc7b8e988fe6c702 (diff) |
Fixed regression introduced in 50107
Shader preview job localizes material without referencing it as a user,
so don't need to unreference itself as a user from this material.
Added BKE_material_free_ex function which could skip user dereferencing.
This also removed old hack with mtex users.
Diffstat (limited to 'source/blender/blenkernel/BKE_material.h')
-rw-r--r-- | source/blender/blenkernel/BKE_material.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_material.h b/source/blender/blenkernel/BKE_material.h index 030af85ba84..dd1b1a7752b 100644 --- a/source/blender/blenkernel/BKE_material.h +++ b/source/blender/blenkernel/BKE_material.h @@ -48,6 +48,7 @@ struct Scene; void init_def_material(void); void BKE_material_free(struct Material *sc); +void BKE_material_free_ex(struct Material *ma, int do_id_user); void test_object_materials(struct ID *id); void resize_object_material(struct Object *ob, const short totcol); void init_material(struct Material *ma); |