[Bf-blender-cvs] [a153acde1d4] blender2.8: Depsgraph: Introduce flag top indicate scene is evaluating for a new frame
Sergey Sharybin
noreply at git.blender.org
Wed Apr 25 16:35:06 CEST 2018
Commit: a153acde1d4d78b0cd4532851f09fc571827e20d
Author: Sergey Sharybin
Date: Wed Apr 25 15:09:52 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBa153acde1d4d78b0cd4532851f09fc571827e20d
Depsgraph: Introduce flag top indicate scene is evaluating for a new frame
===================================================================
M source/blender/depsgraph/intern/nodes/deg_node_time.cc
M source/blender/makesdna/DNA_ID.h
===================================================================
diff --git a/source/blender/depsgraph/intern/nodes/deg_node_time.cc b/source/blender/depsgraph/intern/nodes/deg_node_time.cc
index 230488b2328..7b871d6d42b 100644
--- a/source/blender/depsgraph/intern/nodes/deg_node_time.cc
+++ b/source/blender/depsgraph/intern/nodes/deg_node_time.cc
@@ -33,10 +33,13 @@
#include "intern/depsgraph_intern.h"
#include "util/deg_util_foreach.h"
+#include "DNA_scene_types.h"
+
namespace DEG {
void TimeSourceDepsNode::tag_update(Depsgraph *graph)
{
+ graph->scene_cow->id.recalc |= ID_RECALC_TIME;
foreach (DepsRelation *rel, outlinks) {
DepsNode *node = rel->to;
node->tag_update(graph);
diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h
index f192c9ea75a..daa4a3d9ca3 100644
--- a/source/blender/makesdna/DNA_ID.h
+++ b/source/blender/makesdna/DNA_ID.h
@@ -483,6 +483,7 @@ enum {
ID_RECALC_TRANSFORM = 1 << 5,
ID_RECALC_COLLECTIONS = 1 << 6,
ID_RECALC_COPY_ON_WRITE = 1 << 7,
+ ID_RECALC_TIME = 1 << 8,
/* Special flag to check if SOMETHING was changed. */
ID_RECALC_ALL = (~(int)0),
};
More information about the Bf-blender-cvs
mailing list