Depsgraph: Ensure DOF object is always in the graph
Related in T60961. Unfortunately, doesn't fix it yet. Needs deeper investigation.
This commit is contained in:
@@ -1312,6 +1312,9 @@ void DepsgraphNodeBuilder::build_camera(Camera *camera)
|
||||
}
|
||||
build_animdata(&camera->id);
|
||||
build_parameters(&camera->id);
|
||||
if (camera->dof.focus_object != NULL) {
|
||||
build_object(-1, camera->dof.focus_object, DEG_ID_LINKED_INDIRECTLY, false);
|
||||
}
|
||||
}
|
||||
|
||||
void DepsgraphNodeBuilder::build_light(Light *lamp)
|
||||
|
||||
@@ -2076,6 +2076,7 @@ void DepsgraphRelationBuilder::build_camera(Camera *camera)
|
||||
build_animdata(&camera->id);
|
||||
build_parameters(&camera->id);
|
||||
if (camera->dof.focus_object != NULL) {
|
||||
build_object(NULL, camera->dof.focus_object);
|
||||
ComponentKey camera_parameters_key(&camera->id, NodeType::PARAMETERS);
|
||||
ComponentKey dof_ob_key(&camera->dof.focus_object->id, NodeType::TRANSFORM);
|
||||
add_relation(dof_ob_key, camera_parameters_key, "Camera DOF");
|
||||
|
||||
Reference in New Issue
Block a user