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:
authorCampbell Barton <ideasman42@gmail.com>2007-03-08 16:43:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-03-08 16:43:59 +0300
commit51c16edabc18a13e91bee1a35cbe39eb1e911ea3 (patch)
tree30e92edd1331d6299a483ed2b09a13e63f3f6e34
parente3fc19364130d49449964e143d20dc034f49fa5e (diff)
bugfix, material copy wasnt increasing the lighting groups user count, but removing the lighting group decreased it.
-rw-r--r--source/blender/blenkernel/intern/material.c2
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]) {