Fix #27465: used light groups did not get linked in with materials automatically.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 26 May 2011 10:25:51 +0000 (10:25 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 26 May 2011 10:25:51 +0000 (10:25 +0000)
source/blender/blenloader/intern/readfile.c

index 9666990f1106230b483c2542e0f80aea76270606..bf00abf1008b54c19e20744cb711b89a6b1d154e 100644 (file)
@@ -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)