bugfix, material copy wasnt increasing the lighting groups user count, but removing the lighting group decreased it.

This commit is contained in:
Campbell Barton
2007-03-08 13:43:59 +00:00
parent e3fc193641
commit 51c16edabc

View File

@@ -166,6 +166,8 @@ Material *copy_material(Material *ma)
man= copy_libblock(ma);
id_us_plus((ID *)man->ipo);
id_us_plus((ID *)man->group);
for(a=0; a<MAX_MTEX; a++) {
if(ma->mtex[a]) {