[Bf-blender-cvs] [9dc7dca3a22] master: Depsgraph: Fix missing camera animation after visibility changes
Sergey Sharybin
noreply at git.blender.org
Thu Feb 8 15:13:29 CET 2018
Commit: 9dc7dca3a22502f79131728a6d4441ea1851595c
Author: Sergey Sharybin
Date: Thu Feb 8 15:12:38 2018 +0100
Branches: master
https://developer.blender.org/rB9dc7dca3a22502f79131728a6d4441ea1851595c
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.
===================================================================
M source/blender/depsgraph/intern/depsgraph_tag.cc
===================================================================
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);
}
More information about the Bf-blender-cvs
mailing list