Depsgraph: Introduce flag top indicate scene is evaluating for a new frame
This commit is contained in:
parent
e5633114cd
commit
a153acde1d
|
@ -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);
|
||||
|
|
|
@ -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),
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue