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:
parent
d5e29f4140
commit
09d3c907e7
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue