Fix T51907: New Depsgraph - Camera constraint is not evaluated properly
This is more a workaround for until we've got proper visibility flush, which will likely happen in blender2.8 branch.
This commit is contained in:
parent
95d871c1a2
commit
edded659c6
|
@ -320,8 +320,11 @@ void DepsgraphNodeBuilder::build_object(Scene *scene, Base *base, Object *ob)
|
|||
if (base != NULL) {
|
||||
id_node->layers |= base->lay;
|
||||
}
|
||||
if (ob == scene->camera) {
|
||||
/* Camera should always be updated, it used directly by viewport. */
|
||||
if (ob->type == OB_CAMERA) {
|
||||
/* Camera should always be updated, it used directly by viewport.
|
||||
*
|
||||
* TODO(sergey): Make it only for active scene camera.
|
||||
*/
|
||||
id_node->layers |= (unsigned int)(-1);
|
||||
}
|
||||
/* Skip rest of components if the ID node was already there. */
|
||||
|
|
Loading…
Reference in New Issue