Fixed regression introduced in 50107
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 22 Aug 2012 17:22:04 +0000 (17:22 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 22 Aug 2012 17:22:04 +0000 (17:22 +0000)
commitb0dd030ba61fe81914d14e520f710684a2406900
treef4f0027962b9aff73220bdeda00a974794875b1b
parent1939baa47d6d6cd6cedb7440bc7b8e988fe6c702
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.
source/blender/blenkernel/BKE_material.h
source/blender/blenkernel/intern/material.c
source/blender/editors/render/render_preview.c