[Bf-blender-cvs] [7ea577eef3e] master: Fix depsgraph check for tag during evaluation

Sergey Sharybin noreply at git.blender.org
Mon Aug 9 12:09:09 CEST 2021


Commit: 7ea577eef3e51799efe9fc286847f32b3611373e
Author: Sergey Sharybin
Date:   Mon Aug 9 12:04:12 2021 +0200
Branches: master
https://developer.blender.org/rB7ea577eef3e51799efe9fc286847f32b3611373e

Fix depsgraph check for tag during evaluation

- Only do print when asked for tags debugging.
- Add missing newline to the message.

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

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

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

diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc
index ab93464d09a..dd96c5a3b2b 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -646,8 +646,8 @@ void graph_id_tag_update(
 {
   const int debug_flags = (graph != nullptr) ? DEG_debug_flags_get((::Depsgraph *)graph) : G.debug;
   if (graph != nullptr && graph->is_evaluating) {
-    if (debug_flags & G_DEBUG_DEPSGRAPH) {
-      printf("ID tagged for update during dependency graph evaluation.");
+    if (debug_flags & G_DEBUG_DEPSGRAPH_TAG) {
+      printf("ID tagged for update during dependency graph evaluation.\n");
     }
     return;
   }



More information about the Bf-blender-cvs mailing list