Depsgraph: Tag datablock with original update flag

Tagging based on components might not be granular enough.

For example, for particles we would want to know what part
of particles was changed exactly. For the flushing we wouldn't
worry too much, because we will want less granular updates
there anyway.
This commit is contained in:
Sergey Sharybin
2018-03-29 10:08:56 +02:00
parent 6456d59b6b
commit 05c76990c8

View File

@@ -409,6 +409,7 @@ void deg_graph_id_tag_update(Main *bmain, Depsgraph *graph, ID *id, int flag)
}
deg_graph_id_tag_legacy_compat(bmain, id, (eDepsgraph_Tag)0);
}
id->recalc |= flag;
int current_flag = flag;
while (current_flag != 0) {
eDepsgraph_Tag tag =