Fix T49981: When camera is on inactive layer, it does not evaluate constraints

Second round of fix, was broken by 843be91.
This commit is contained in:
Sergey Sharybin 2017-05-17 10:20:34 +02:00
parent 0a6c57d3d2
commit 24676b535a

@ -356,6 +356,10 @@ void DEG_graph_on_visible_update(Main *bmain, Scene *scene)
Object *object = base->object;
DEG::IDDepsNode *id_node = graph->find_id_node(&object->id);
id_node->layers |= base->lay;
if (object == scene->camera) {
/* Camera should always be updated, it used directly by viewport. */
id_node->layers |= (unsigned int)(-1);
}
}
DEG::deg_graph_build_flush_layers(graph);
LINKLIST_FOREACH (Base *, base, &scene->base) {