Depsgraph: Fix Camera object showing when not in view layer

If the Scene->camera was not in the active view layer we would still see it in the viewport.
This commit is contained in:
Dalai Felinto 2017-11-28 17:47:22 -02:00
parent e559a99a04
commit 2f80fbbac3
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ void DepsgraphNodeBuilder::build_view_layer(Scene *scene,
base->object->select_color = select_color++;
}
if (scene->camera != NULL) {
build_object(NULL, scene->camera, linked_state);
build_object(NULL, scene->camera, DEG_ID_LINKED_INDIRECTLY);
}
/* rigidbody */