Fix depsgraph check for tag during evaluation

- Only do print when asked for tags debugging.
- Add missing newline to the message.
This commit is contained in:
Sergey Sharybin
2021-08-09 12:04:12 +02:00
parent d6f162dfa9
commit 7ea577eef3

View File

@@ -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;
}