Depsgraph: Add utility function to tag ID for update within a specific graph
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user