diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-03-08 16:43:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-03-08 16:43:59 +0300 |
commit | 51c16edabc18a13e91bee1a35cbe39eb1e911ea3 (patch) | |
tree | 30e92edd1331d6299a483ed2b09a13e63f3f6e34 /source/blender/blenkernel/intern | |
parent | e3fc19364130d49449964e143d20dc034f49fa5e (diff) |
bugfix, material copy wasnt increasing the lighting groups user count, but removing the lighting group decreased it.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/material.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c index dea972470b5..06f61049269 100644 --- a/source/blender/blenkernel/intern/material.c +++ b/source/blender/blenkernel/intern/material.c @@ -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]) { |