Fix #36288, Renderlayer toggles behave unexpected in Outliner. The outliner was using the wrong flag variable for toggling render layers, was setting pass flags instead of the layer on/off flag.

This commit is contained in:
Lukas Toenne
2013-08-03 15:00:22 +00:00
parent 5fc6f04fc8
commit 20a377f93a

View File

@@ -438,7 +438,7 @@ static void outliner_add_scene_contents(SpaceOops *soops, ListBase *lb, Scene *s
for (a = 0, srl = sce->r.layers.first; srl; srl = srl->next, a++) {
TreeElement *tenlay = outliner_add_element(soops, &tenla->subtree, sce, te, TSE_R_LAYER, a);
tenlay->name = srl->name;
tenlay->directdata = &srl->passflag;
tenlay->directdata = &srl->layflag;
if (srl->light_override)
outliner_add_element(soops, &tenlay->subtree, srl->light_override, tenlay, TSE_LINKED_LAMP, 0);