Depsgraph: Always assume scene camera is visible

Allows to disable camera collection to make objects to go out of
the way, but still be able to animate.
This commit is contained in:
Sergey Sharybin 2018-09-19 16:43:59 +02:00
parent d5e29f4140
commit 09d3c907e7
1 changed files with 5 additions and 1 deletions

View File

@ -552,7 +552,11 @@ void DepsgraphNodeBuilder::build_object(int base_index,
/* Create ID node for object and begin init. */
IDDepsNode *id_node = add_id_node(&object->id);
id_node->linked_state = linked_state;
if (id_node->linked_state == DEG_ID_LINKED_DIRECTLY) {
if (object == scene_->camera) {
id_node->is_directly_visible = true;
}
else if (id_node->linked_state == DEG_ID_LINKED_DIRECTLY)
{
id_node->is_directly_visible = is_visible;
}
else {