Fix #32670: lamps in lamp groups did not respect renderability option.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 27 Sep 2012 15:30:13 +0000 (15:30 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 27 Sep 2012 15:30:13 +0000 (15:30 +0000)
source/blender/render/intern/source/convertblender.c

index f344da9725f4a1084245a3620d06c4a9a6fa7120..874999a8aaeed90a055f1430e928966c35a5e1dd 100644 (file)
@@ -3929,6 +3929,9 @@ static void add_lightgroup(Render *re, Group *group, int exclusive)
        /* note that 'exclusive' will remove it from the global list */
        for (go= group->gobject.first; go; go= go->next) {
                go->lampren= NULL;
+
+               if(go->ob->restrictflag & OB_RESTRICT_RENDER)
+                       continue;
                
                if (go->ob->lay & re->lay) {
                        if (go->ob && go->ob->type==OB_LAMP) {