[Bf-blender-cvs] [57ec2156770] blender2.8: Depsgraph: Add utility function to tag ID for update within a specific graph

Sergey Sharybin noreply at git.blender.org
Fri Nov 3 15:01:03 CET 2017


Commit: 57ec2156770a87c1a8f7b4b60e29ce4fa4cd4454
Author: Sergey Sharybin
Date:   Fri Nov 3 12:10:04 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB57ec2156770a87c1a8f7b4b60e29ce4fa4cd4454

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

===================================================================

M	source/blender/depsgraph/DEG_depsgraph.h
M	source/blender/depsgraph/intern/depsgraph_tag.cc

===================================================================

diff --git a/source/blender/depsgraph/DEG_depsgraph.h b/source/blender/depsgraph/DEG_depsgraph.h
index c47ddb711a6..6bd24e7ba2b 100644
--- a/source/blender/depsgraph/DEG_depsgraph.h
+++ b/source/blender/depsgraph/DEG_depsgraph.h
@@ -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
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc
index 113b927d528..8c7afa89033 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -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)
 {



More information about the Bf-blender-cvs mailing list