[Bf-blender-cvs] [c5e40b46738] uuid-undo-experiments: Add depsgraph helper to print current recalc flags of an ID.

Bastien Montagne noreply at git.blender.org
Fri Apr 3 18:39:05 CEST 2020


Commit: c5e40b46738f0e7d993780a4bb37166b2e1f8aba
Author: Bastien Montagne
Date:   Fri Apr 3 15:34:21 2020 +0200
Branches: uuid-undo-experiments
https://developer.blender.org/rBc5e40b46738f0e7d993780a4bb37166b2e1f8aba

Add depsgraph helper to print current recalc flags of an ID.

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

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 c94a8876ab0..129e122c044 100644
--- a/source/blender/depsgraph/DEG_depsgraph.h
+++ b/source/blender/depsgraph/DEG_depsgraph.h
@@ -136,6 +136,8 @@ void DEG_id_type_tag(struct Main *bmain, short id_type);
 
 void DEG_ids_clear_recalc(struct Main *bmain, Depsgraph *depsgraph);
 
+void DEG_id_recalc_print(struct ID *id);
+
 /* Check if something was changed in the database and inform
  * editors about this.
  */
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc
index 3b0782cd5d6..82f65cc8043 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -789,6 +789,11 @@ void DEG_id_type_tag(Main *bmain, short id_type)
   }
 }
 
+void DEG_id_recalc_print(struct ID *id)
+{
+  printf("%s", DEG::stringify_update_bitfield(id->recalc).c_str());
+}
+
 /* Update dependency graph when visible scenes/layers changes. */
 void DEG_graph_on_visible_update(Main *bmain, Depsgraph *depsgraph, const bool do_time)
 {



More information about the Bf-blender-cvs mailing list