Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-02-08 17:12:38 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-02-08 17:12:38 +0300
commit9dc7dca3a22502f79131728a6d4441ea1851595c (patch)
tree810d8962be5b192b53c2207add5fc7980bdecd76
parentf088c6b9f6d69e7f1af15a059f122589ee6a39ab (diff)
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.
-rw-r--r--source/blender/depsgraph/intern/depsgraph_tag.cc2
1 files changed, 1 insertions, 1 deletions
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);
}