Depsgraph: Add utility function to tag ID for update within a specific graph

This commit is contained in:
Sergey Sharybin
2017-11-03 12:10:04 +01:00
parent e72dfee66f
commit 57ec215677
2 changed files with 14 additions and 0 deletions

View File

@@ -169,6 +169,11 @@ enum {
void DEG_id_tag_update(struct ID *id, int flag);
void DEG_id_tag_update_ex(struct Main *bmain, struct ID *id, int flag);
void DEG_graph_id_tag_update(struct Main *bmain,
struct Depsgraph *depsgraph,
struct ID *id,
int flag);
/* Tag given ID type for update.
*
* Used by all sort of render engines to quickly check if

View File

@@ -416,6 +416,15 @@ void DEG_id_tag_update_ex(Main *bmain, ID *id, int flag)
DEG::deg_id_tag_update(bmain, id, flag);
}
void DEG_graph_id_tag_update(struct Main *bmain,
struct Depsgraph *depsgraph,
struct ID *id,
int flag)
{
DEG::Depsgraph *graph = (DEG::Depsgraph *)depsgraph;
DEG::deg_graph_id_tag_update(bmain, graph, id, flag);
}
/* Tag given ID type for update. */
void DEG_id_type_tag(Main *bmain, short id_type)
{