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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-05-26 14:25:51 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-05-26 14:25:51 +0400
commitd7f42721f879781e12f750fdf803bab712114811 (patch)
treec99aa26e9bb128beea63ab975b211c1c0474fa1c /source/blender/blenloader
parent0f1f6e448d0e02549a4ef7159eccf60f87ace219 (diff)
Fix #27465: used light groups did not get linked in with materials automatically.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 9666990f110..bf00abf1008 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -12200,6 +12200,9 @@ static void expand_material(FileData *fd, Main *mainvar, Material *ma)
if(ma->nodetree)
expand_nodetree(fd, mainvar, ma->nodetree);
+
+ if(ma->group)
+ expand_doit(fd, mainvar, ma->group);
}
static void expand_lamp(FileData *fd, Main *mainvar, Lamp *la)