Depsgraph: Introduce flag top indicate scene is evaluating for a new frame

This commit is contained in:
Sergey Sharybin 2018-04-25 15:09:52 +02:00
parent e5633114cd
commit a153acde1d
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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),
};