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:
parent
e559a99a04
commit
2f80fbbac3
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue