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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user