Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/render/render_internal.c
| Context not available. | |||||
| int layer = BLI_findstringindex(&main_rr->layers, | int layer = BLI_findstringindex(&main_rr->layers, | ||||
| (char *)rr->renlay->name, | (char *)rr->renlay->name, | ||||
| offsetof(RenderLayer, name)); | offsetof(RenderLayer, name)); | ||||
| sima->iuser.layer = layer; | |||||
| if (layer != rj->last_layer) { | if (layer != rj->last_layer) { | ||||
| sima->iuser.layer = layer; | |||||
| rj->last_layer = layer; | rj->last_layer = layer; | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||
| for (sa = win->screen->areabase.first; sa; sa = sa->next) { | for (sa = win->screen->areabase.first; sa; sa = sa->next) { | ||||
| if (sa == rj->sa) { | if (sa == rj->sa) { | ||||
| if (sa->spacetype == SPACE_IMAGE) { | if (sa->spacetype == SPACE_IMAGE) { | ||||
| SpaceImage *sima = sa->spacedata.first; | if (!RE_HasSingleLayer(rj->re)) { | ||||
| sima->iuser.layer = rj->orig_layer; | SpaceImage *sima = sa->spacedata.first; | ||||
| sima->iuser.layer = rj->orig_layer; | |||||
| } | |||||
brecht: Code style convention:
```
if (re->r.scemode & R_SINGLE_LAYER) {
``` | |||||
| } | } | ||||
| return; | return; | ||||
| } | } | ||||
| Context not available. | |||||
Not Done Inline ActionsCode style convention: }
else {
...
}brecht: Code style convention:
```
}
else {
...
}
``` | |||||
Code style convention:
if (re->r.scemode & R_SINGLE_LAYER) {