From 9dc7dca3a22502f79131728a6d4441ea1851595c Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 8 Feb 2018 15:12:38 +0100 Subject: Depsgraph: Fix missing camera animation after visibility changes Synchronize code in on_visible_update with depsgraph building. Need to update all cameras, since they might be hooked up to marker. --- source/blender/depsgraph/intern/depsgraph_tag.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/depsgraph') diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc index a66c61e4c0f..d9f6fb07ae3 100644 --- a/source/blender/depsgraph/intern/depsgraph_tag.cc +++ b/source/blender/depsgraph/intern/depsgraph_tag.cc @@ -337,7 +337,7 @@ 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) { + if (object == scene->camera || object->type == OB_CAMERA) { /* Camera should always be updated, it used directly by viewport. */ id_node->layers |= (unsigned int)(-1); } -- cgit v1.2.3