Fix T47329: Compositing fails to render unless each included scene was rendered since opening

This commit is contained in:
Sergey Sharybin 2016-02-05 14:57:53 +01:00
parent c4dc14b079
commit d3889e2cad
Notes: blender-bot 2023-05-31 04:43:10 +02:00
Referenced by issue #47329, Compositing fails to render unless each included scene was rendered since opening
1 changed files with 4 additions and 3 deletions

View File

@ -2815,13 +2815,14 @@ static bool check_valid_compositing_camera(Scene *scene, Object *camera_override
while (node) {
if (node->type == CMP_NODE_R_LAYERS && (node->flag & NODE_MUTED) == 0) {
Scene *sce = node->id ? (Scene *)node->id : scene;
if (!sce->camera && !BKE_scene_camera_find(sce)) {
if (sce->camera == NULL) {
sce->camera = BKE_scene_camera_find(sce);
}
if (sce->camera == NULL) {
/* all render layers nodes need camera */
return false;
}
}
node = node->next;
}